Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

上传文件能带动态新增的参数吗,比如文件MD5值?formData 只能在初始化设置,不能满足需求 #1578

Closed
mponeto opened this issue Mar 10, 2016 · 1 comment

Comments

@mponeto
Copy link

mponeto commented Mar 10, 2016

上传文件,想把前端生成的MD5和文件请求一并传到后台可以吗?

这样我就可以用MD5作为文件标识了。

因为如果开了图片压缩的话,前端计算的MD5(得到的是压缩前的MD5)和后端(压缩后文件的MD5)不一致,所以只能直接用前端生成的MD5作为标识。

@mponeto
Copy link
Author

mponeto commented Mar 10, 2016

看到了 #145 有说明

@mponeto mponeto closed this as completed Mar 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant