Giter Site home page Giter Site logo

Comments (6)

vinodc avatar vinodc commented on July 23, 2024

While we do follow redirects for GET requests (like downloads), uploads generally do not resend POST data on a redirect, since the redirect could be in response to a successful operation rather than a failure. We would not want to resend data on a success since it may not be expected, and even if it is, it may not be idempotent. I believe the HTTP spec does allow for the scenario you describe with a 307 response code, but I doubt the server you are talking about returns that.

from file-picker.

lutherism avatar lutherism commented on July 23, 2024

Hmm strange. This is a GET for downloads, and its failing in this case for me. Maybe because it was getting redirecting twice? The second time to a separate domain.

first response 301 for setting locale, second response 302 to S3.

Anyway, we are just using the direct URL now, so it may not be worth tracking down.

from file-picker.

vinodc avatar vinodc commented on July 23, 2024

Whoops, I misunderstood and replied too soon. This is the case where the Saver downloads the file and attempts to save it. I'll verify that we follow redirects on downloads for this particular case and get back with an update.

from file-picker.

lutherism avatar lutherism commented on July 23, 2024

Cool, no problem. Thanks Vinod.

On Thursday, April 2, 2015, Vinod Chandru [email protected] wrote:

Whoops, I misunderstood and replied too soon. This is the case where the
Saver downloads the file and attempts to save it. I'll verify that we
follow redirects on downloads for this particular case and get back with an
update.


Reply to this email directly or view it on GitHub
#18 (comment)
.

from file-picker.

vinodc avatar vinodc commented on July 23, 2024

I've been unable to reproduce this. The Saver URL is handled correctly through multiple redirects in my tests (both 301 and 302). If you could provide me with a test URL, I can help troubleshoot further.

from file-picker.

vinodc avatar vinodc commented on July 23, 2024

Please re-open this issue if you continue to encounter this problem.

from file-picker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.