I have web application where I am uploading the large file more than 1 GB from browser to the server. Depending on network speed some time it will take more than 1 hour.
Server endpoint is secured with OAuth. When upload request is sent from browser it has valid token with 1 hour expiry.
In case of large file upload, it gives Unauthorised error because of token expiry after 1 hour.
How can I solve this problem where token should validate only in the beginning of the request not after complete file upload?
Technology used
- AngularJs - UI
- SpringBoot version 2 - Backend
- POST request Content-Type: Multipart/form-data
I dont have option to increase the token expiry beyond 1 hour.