By atecho207
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!
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!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.