charliefortune
What's the best way to store S3 image URI to work with the file upload field?
to be able to draw the image (http://example.s3-website.eu-west-2.amazonaws.com/image/file/Screen_Shot_2019-03-20_at_11_57_05.png) on next visit, if the value in the property is something like this
22 replies
What's the best way to store S3 image URI to work with the file upload field?
hmm, so my problem isn't related to the api trip, in that case. When the page loads, it has valid data in the file upload component, but it fails to render the image. Is there a way to debug this other than hacking into the component code?
22 replies
What's the best way to store S3 image URI to work with the file upload field?
but if this is set up with s3 as storage in a more normal way (without the api round trip), then the s3 driver would normally be able to render a thumbnail from an S3 path, wouldn't it? Am I right in assuming that's how it's meant to work?
22 replies
What's the best way to store S3 image URI to work with the file upload field?
my setup is a bit different, I don't write directly to the underlying model. I post to an API (via afterStateUpdated) then persist the record locally once it's been returned from the remote service. I do get the initial (local) preview after upload - but when I reload the form, there isn't a thumbnail.
22 replies
How can I get the ID of the deleted item in a repeater action?
a related issue is how to update the collection with the properties of the record once it has been persisted in the api and locally - I get a record back from the api and insert it locally. But in order to capture further updates to that repeater item, I need to add the new ID into the in-memory item.
17 replies
How can I get the ID of the deleted item in a repeater action?
I don't have any kind of form save - everything else saves on update events. I could compare the collection, but that seems a bit clunky. But if I can get the into my closure then I should be able to get the item from there, I guess.
17 replies
How can I get the ID of the deleted item in a repeater action?
My architecture is client>api - so I need to do more than just kill the member of the collection in the local db. I want the ID so I can post the delete request back to the api, then I will remove the local record depending on the api response.
17 replies