6
I could take a code on the Internet paste here and try an answer but I prefer that help me with the logic and programming of a script to upload images in Ajax. I don’t know how to start, I’m a beginner but I already know a few things about jQuery and Ajax. In this upload I will register 5 fields in the database that are;
id, nome(md5), titulo, descricao, datacadastro
I find it interesting to show a little research effort and at least some implementation attempt. See [Ask]
– gmsantos
I’ve been struggling to learn, you can see in my other questions. I just didn’t post code this time because there’s so much going on that I didn’t want to get it wrong.
– Marcos Vinicius
A place to start: http://forum.codecall.net/topic/37937-php-upload-class/
– gmsantos
If you’re a beginner, I don’t recommend doing the client-side part from scratch. It has many details needed to work cross-browser (such as fallback using iframes), it is better to use a ready-made library that already solves these things. For example: https://github.com/blueimp/jQuery-File-Upload
– bfavaretto
Search on plupupload is the best plugin I’ve ever found...
– Jader A. Wagner
The jQuery-File-Upload quoted by @bfavaretto is really good! See the amount of Forks from the project on github. I think it is worth seeing it working on the example page (http://blueimp.github.io/jQuery-File-Upload/) and read the documentation on the link already mentioned.
– Adriano Leal
If you don’t feel comfortable with jquery or don’t want to use the http://blueimp.github.io/jQuery-File-Upload/ plugin mentioned earlier, another option would be to set the target of the form to an iframe.
– Thiago Custodio
To solve my image upload problem, I ended up using jQuery File Upload. Thank you to everyone who commented.
– Marcos Vinicius
The ideal is to look for examples that use php to do the upload process, have classes just for this.
– Alex Schmitt