C ASP. Skill Tests ASP. Note : If no element is matched by the selector then Ajax request will not be sent. Example: jQuery load Method. Example: Set Data in load. Try it. Not necessarily, if the browser supports the new File API see html5rocks. I'm actually using this plugin jasny.
Show 1 more comment. Active Oldest Votes. Improve this answer. Morilog Morilog 2, 2 2 gold badges 14 14 silver badges 15 15 bronze badges. Perfect solution! Improvement for single upload, index 0. Excellent, got my script working with Cloudinary without having to submit a form. Drag, drop, upload : — Andy. That is exactly what I needed.
Great answer!! Add a comment. Sark Sark 4, 4 4 gold badges 24 24 silver badges 24 24 bronze badges. Hey, I tried your solution and that works. I retrieved the information but it's not well encoded.
What should I use to get the second encode for my picture? I think that the data I retrieve are not Base64 encoded and this is the problem, but I'm not sure — kschaeffler. Carlos B. Flores Carlos B. Flores 1, 16 16 silver badges 10 10 bronze badges. Derly Pacheco Derly Pacheco 37 2 2 bronze badges. Can you check the Network tab in the developer tools and inspect the Response tab of the XHR request to see if the file isn't mangled? Assuming Junk after document element is the error message you are getting, maybe XHR isn't the issue here, instead jQuery maybe tries parsing XML and fails?
Check api. Add a comment. Active Oldest Votes. Improve this answer. What you getting the output..? HTML Code or what else..? Show 3 more comments. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.
0コメント