简体   繁体   中英

How to change form data during upload? - jquery-file-upload

I really need some help here please.

I'm using jquery-file-upload to let users upload images in my website.

I need a way to change the formData after the first file be uploaded.

It starts with this value:

formData = {album: false};

And then, after the first file it creates a new ID in PHP and i need to change to the album new ID, like this:

formData = {album: result.new_album_ID};

This way the rest of the files would be stored inside the new Album.

How can i do this? I googled but didn't find any answer. Is it possible?

If you didn't understand something, please answer me before vote down.

Thank very much to you all.

返回文件上传响应中的ID(您的php代码),然后在formData对象上手动进行设置。

Ok after some time i realized that is not possible. After starting the upload the formData can not be changed.

Thank you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM