简体   繁体   中英

jquery .remove() or .hide() only hide uploaded file after click send button it saves the hidden/removed files in database

Hello fellows I have a weird issue:I use file upload to attach files with "X" sign behind when I click the button submit it also sends to the database those which were clicked "X". I can't understand why ? I need an advice

You should remove the files from the JavaScript object that you are storing the files, according to what element from the html you are removing. That is before sending them to the server.

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