Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload image on IE with PUT request is sent as POST call to server #261

Closed
mkoppula opened this issue Jul 9, 2014 · 4 comments
Closed

Comments

@mkoppula
Copy link

mkoppula commented Jul 9, 2014

$upload.upload({
url: url,
method: 'PUT',
file: imageData
});
Logs of demo in IE9 using Charles logger shows that POST call is made even when method type 'PUT' is selected.

The flash file attached is making a POST call to the server always irrespective of method type specified in upload function.

Do we have a solution for this?

@danialfarid
Copy link
Owner

The flash doesn't support put requests. PUT is only for HTML5 browsers.

@danialfarid
Copy link
Owner

The demo won't allow put for IE8-9 now

lynndylanhurley added a commit to lynndylanhurley/angular-file-upload that referenced this issue Feb 6, 2015
danialfarid#261 warrants a mention in the README.
@lynndylanhurley
Copy link
Contributor

The flash doesn't support put requests. PUT is only for HTML5 browsers.

Can you elaborate on this? PUT does work on older browsers (IE8 & IE9 at least). Is the issue with this project, or one of this project's dependencies?

@danialfarid
Copy link
Owner

For IE8-9 flash is used to upload the file to the server and flash upload file api does not support PUT request. https://github.com/mailru/FileAPI/issues/141
And they don't support form data to be able to send the file using XMLHttpRequest PUT that's why we are using flash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants