Report this

What is the reason for this report?

spaces presigned url return token when posted correctly

Posted on January 10, 2019

i need to validate that a file was uploaded, my idea is that the servert return a validation token or redirect to my page with a /validationToken. my question: is possible to make that the server return something when posted(putted) correctly?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Heya,

Yes, it is possible for the server to return a validation token or redirect to your page with a validation token appended to the URL upon successful file upload. You would need to implement this functionality within your server-side code, typically with a response after the file upload is processed.

By using an appropriate server-side language like Python, Node.js, PHP, or others, you can handle the file upload and return the desired response. Once the file has been uploaded and verified, you can either send a JSON object containing the validation token or redirect the user to your page with the validation token in the URL.

For more information on how to work with Droplets and server-side programming, please visit the DigitalOcean Droplet Documentation.

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.