weixin_33691700 2017-05-05 17:23 采纳率: 0%
浏览 4

PHP附件上传

I have a form like this:

<form method="POST">
  <input type="text" name="title">
  <textarea rows="4" cols="50" name="description"></textarea>
  <input type="file" multiple>
  <input type="submit">
</form>

I want to upload the files when user selects them (onChange event) and get an ID. With that ID I can create inputs like:

<input type="hidden" value="ID" name="images[]">

I can upload those file with Ajax, but let's suppose that for some reason user's browser closes or his computer shutdowns before user actually click submit button. How can I delete those files from server and database ?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 全书网Java爬取数据
    • ¥15 SAP HANA SQL Script 。SUM OVER 怎么加where
    • ¥15 怎么获取红包封面的原始链接,并且获取红包封面序列号
    • ¥100 微信小程序跑脚本授权的问题
    • ¥60 为什么使用python对地震数据进行umap降维后,数据成图会出现不连续的现象
    • ¥100 房产抖音小程序苹果搜不到安卓可以付费悬赏
    • ¥15 STM32串口接收问题
    • ¥15 腾讯IOA系统怎么在文件夹里修改办公网络的连接
    • ¥15 filenotfounderror:文件是存在的,权限也给了,但还一直报错
    • ¥15 MATLAB和mosek的求解问题