I am testing how to use AW3 S3 file storage. I use the upload component. After the file is uploaded (and this is confirmed working), I see a link on the Upload box. However, when I click on this file name link, the file returned is an Error message rather than the original PDF file uploaded.
The file returned is a HTTP Status 410 - Gone error.
Hi,
Are there any error or warning messages, or exceptions in server log?
Does this error happen in local debug server, or in deployed environment in AWS?
This error happens on my local debug server. When I click on the hyperlink (eg. acme_cis.pdf) link above above, it opens another window with the following URL.
Hi,
Which version of cuba patform do you use?
Did you double check that uploaded file appared in your bucket on aws.amazon?
(see manual how to configure aws)
I can`t reporuce the problem. Uploaded file openes in browser successfully.
The screen comes up, the upload button works and I get all the notifications.
I uploaded a PDF. I can see the file in the External Files list. I can download the file from the External Files list screen.
But on the original test screen, when I click on the file name, in blue, on the upload field, a new tab/window opens but it is BLANK. Is this the correct behaviour ?
Hi!
I have reproduced the problem with your code.
When you uploade file, it stores in temporary storage. After the programm executes fileUploadingAPI.putFileIntoStorage(uploadField.getFileId(), fd); , file removes from temporary storage and stores in File Storage, but clicking on the blue file link still leads to temporary storage.
If you add setValue() method after commit(), the pdf file will be opened in new tab correctly FileDescriptor committedFD = dataManager.commit(fd); uploadField.setValue(committedFD);