-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Angular #48
Comments
Could you try a minimal example using no angular? test if calling also are you appending any files also? |
Looks like the polyfill is working great. I think that it has something to
do with our infrastructure.
I think I found the reason why its not working.
Our application sits behind some sort of firewall and reverse proxy (TMG
and UAG).
And i think that because the Content-Type string that is being sent in the
header, it somehow blocks the post.
I noticed that on chrome browser the content type is of this sort:
Content-Type:multipart/form-data;
boundary=----WebKitFormBoundarybBLw14JY2tZ7zSL6
and on other browsers that use the formdata polyfill, the header looks like
this:
Content-Type: multipart/form-data;
boundary=----formdata-polyfill-0.06878081017569748
Maybe its the dash character, or maybe its the dot that appears after it.
I'm guessing that the firewall is filtering the post.
Do you know if there is a way I can change the boundary string and set it
to something else manually?
Thanks a lot!
…On Thu, Dec 28, 2017 at 5:52 AM, Jimmy Wärting ***@***.***> wrote:
Could you try a minimal example using no angular?
Would help with some form of stacktrace of what is going wrong or some
dump on the request that was mad in the network inspector
test if calling fd._blob() works
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGo7lfZK-80-fyPGnUuWFfujQ1jSz4Gvks5tExB1gaJpZM4RN7gQ>
.
|
Could maybe change it to something similar to webkits. Was changed before don't remember the reason but need to look it up among the issues |
One requirement is that it's lowercased... #17 |
Sorry.. It still didn’t help.
When I do the POST action using Microsoft Edge or using any browser on IPhone I get an error. When I examined the response body the error I got was an actual web page with 500 error. internal error on IIS. It must be our firewall or reverse proxy that is causing that issue and cant handle the post, although our system people don’t see anything in their logs. I’ve tried changing the string to imitate Webkit content type header but as you stated below, it is still not exactly the same because of the lowercase thingy...
I think I have no choice but to use the old fashion way using regular post by changing the photos to base64 on client side and do a regular plaintext post.
What a pain ... Because your polyfill is really working great...
Thanks a lot anyways.
|
Got a second guess: #44 (ie might not set the correct content-type) |
Hi,
I've tried to use your polyfill on my Angular app (version 5 as of now) and I had partial success.
It works great on Android devices, Chrome and IE on Windows 10. but on IOS IPhone it did not go well and also on Internet Explorer version 11 on Windows 7 had similar issue.
The functions has() , append() etc. work well.
The issue is with the post action.
There i get an error.
I've been trying to get my head around it and had no luck.
Can you give me an advise maybe?
Thanks.
The text was updated successfully, but these errors were encountered: