-
Notifications
You must be signed in to change notification settings - Fork 153
Set Content-Type to application/json in response #7
Comments
Yeah, I know it has a few warts. Found some code that did the job, packaged it and played around 'til I got it working "good enough" for my needs. Planning on making it a bit nicer as time permits. I see I forgot to mention the content_type bit. Wrote a short line in the readme, and I'll see if I can't get that fixed as well. Thanks for letting me know. |
Gave this a little try today, and got it working in Safari, Chrome and the likes when using So from what I can see while researching, as long as we use a iframe for the uploading (which needs to be done to support IE and Opera), the content-type needs to be |
Can you publish your efforts as a branch? I'm don't care about IE and Opera |
Hi. I'm terribly sorry, but looks like I don't have that any more. I've moved machines since I played around with that, and that little experiment disappeared. Don't really remember how I did it either. Sorry about that. |
can we append format to the link? Like |
@Looooong might be possible to do and get a sensible response. Have you tried it? The url the plugin uses can be customized. I don’t remember the exact parameter name, but it’s listed in the readme |
I noticed that the plugin doesn't work if you actually return a json response. It seems to only work if you send a text/html response with json in it. I assume this is due to the way that the response is being parsed in the javascript.
Great start on a simple upload plugin though. Would be great to extend it and include a list view as well with a configurable endpoint for pulling in the image details.
Thanks!
The text was updated successfully, but these errors were encountered: