question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Get entity ID for File Upload

See original GitHub issue

Hi!

I’m using the FileField and my upload endpoint is something like this:

http://api.example.com/entity/1/

The problem is that I need to provide the URL when I’m defining the field, without knowing the entity’s ID, like this: nga.field('logo', 'file').uploadInformation({ 'url': 'http://api.example.com/entity/ID_HERE/', 'accept': '.svg'})

How can I provide the ID of the current entity to upload the file?

P.S. I only use this field in the editionView, therefore the ID is always available.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:7
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jessequinncommented, Mar 27, 2020

any progress on this? Otherwise uploadInformation just seems pointless for dynamic content!!!

0reactions
nicolasriveirocommented, Oct 5, 2017

I need this 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

Entity Upload Process Details - Knowledge Graph - Yext Help
The Entity Upload Tool allows you to update and add entities to your account in ... The file must contain an identifier column...
Read more >
Step 3: Relate the uploaded file to a specific entity
This API endpoint is step 3 of 3 to upload a file and attach it to an existing entity. ... entity_id*, number, ID...
Read more >
ng-admin file uploadInformation get entity id - Stack Overflow
In ng-admin edit view I need to change file upload url with id as below , but I don't know how to fetch...
Read more >
apex - How to get the Content document Id for file that was just ...
I realized I can get it like this <lightning-file-upload record-id={accountId} onuploadfinished = {handleAddressUploadFinised}> ...
Read more >
[Multiple File Upload] How do I add other attribute into the ...
However, I do not see the way that I can, let's say, get the id of the newly uploaded files (Let's assume multiple...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found