17
Views
6
Comments
[SimpleUploadWorker] What is needed for the UploadEndpoint?
simpleuploadworker
Reactive icon
Forge asset by Bruno Machado
Application Type
Reactive

I am not sure what to enter for the UploadEndpoint to get the FileWorker example screen working.

UserImage.jpg
Bruno Machado
Staff

Hey Ken, thanks for checking the component.

In the REST API integration, check for the exposed api:

this is the endpoint for the demo. 

Cheers!

UserImage.jpg
Ken Zinsky

Perfect, thank you.  I was able to upload the 175 MB file.  OutSystems documentation says the Upload Widget can handle up to 250 MB, but I am not able to get that to work as it returns "CommunicationException: Request failed with status 413" error from server.

UserImage.jpg
Bruno Machado
Staff

Hey! Something is not right. This is supposed to prevent that. What you will see is that a worker will start to work in the background sending chunks of 1MB. 

after selecting the file, what do you see in the network?

UserImage.jpg
Ken Zinsky

Sorry for the confusion. Yes, it is working.  I am able to load the large file using your forge component.

The error I am getting is with the standard upload widget within OutSystems.  I was just pointing out that the help documentation for the Upload widget says it can handle up to 250 MB, but I am not able to get that to work and that is where the 413 error is happening.

2023-10-06 09-22-20
Tiago Bernardo
Champion

Hi.
Just to be even more clear, because I myself was still in doubt, the value to configure is something like:

  • https://<personal>.outsystemscloud.com/SimpleUploadWorker/rest/DummyAPI/File

where you should replace <personal> by your own personal environment name.

Do not use the link direct to the documentation itself, something like:

  • https://<personal>.outsystemscloud.com/SimpleUploadWorker/rest/DummyAPI/#/DummyAPI/File

By the way, it would be very useful if in the component itself, in the description of the site property, there was indication what value should be configured.

Also useful, would be to include in the description of the component, the link to the blog post. Here: https://www.outsystems.com/blog/posts/large-file-uploads-outsystems/

--Tiago Bernardo

UserImage.jpg
Bruno Machado
Staff

Thank you for the suggestion Tiago, I will do that.

I've just re-tested the component.

I am testing a 4gb video upload, and it is working as expected. I'll reach out to you in order to help you to debug what might be wrong.

https://drive.google.com/file/d/1apk4ikTrlqjPVhHs2g3CS_YcGcnuKH0-/view?usp=drivesdk

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.