i need to upload file with jquery.
i now about uploadify plugin, but i don’t want to use such a big plugin for it.
i have an idea, how can i do it, could you tell me will it work?
if i pass the <input type="value"> input’s value as javascript variable to some.php file via ajax, and then make upload there, will it work?
Thanks?
JavaScript can’t do file uploads on its own without the help of Flash, which is why you need something like Uploadify or SWFUpload to do the job.
A workaround option might be using an invisible
iframeyou do the upload to using the form’stargetproperty. That would work the traditional way, but the user could stay on the current page: