English 中文(简体)
A. 含有亚x的多文件上载荷以及提交表格
原标题:Multi file upload with ajax along with a form submit

I need to design a form with several text field and several file to be uploaded along with the form. I would like to use ajax to to submit it, and i was thinking about using a jquery plugin to show a progress bar.(I am using php server side)

问题是,如果使用像这样的东西,上载就开始是同步的,但只想在完整表格验证和提交时真正上载。

是否有办法预先载到显示进展障碍的档案,而是真正将其保存在形式上? 如果用户在上载档案之前填写表格,情况如何?

最佳回答

以下两个发言内容不一:

“一) 只有在整个形式得到验证和提交时,才会真正上载档案。”

“......在预载显示进展障碍的档案,但真正将其保存在提交表格上”

如果你想在背景中上上载档案,但只有在提交表格时才能节省这些档案,那么,情况就是如此:

  • Upload in the background to a "holding" directory
  • When the user submits the form, move the files from the "holding" directory into the real storage directory
  • Periodically delete any files in the "holding" director that are older than X hours
问题回答

暂无回答




相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...

热门标签