[英]How to read and write a file using SWFUpload in javaScript?
I am using SWFUpload for uploading files from client to server. 我正在使用SWFUpload将文件从客户端上传到服务器。 When I select a file to upload, before it uploads I want to read that file, write some additional data to it, then it should be appear for upload on server.
当我选择要上传的文件时,在上传之前,我想读取该文件,向其中写入一些其他数据,然后应该显示该文件以便在服务器上上传。
Is it possible? 可能吗? If it is then please provide me solution.
如果是这样,请提供解决方案。
Thanks in advance. 提前致谢。
This question is similar to one on changing file names . 这个问题类似于更改文件名的问题 。 Use a combination of FileReference , event handler , deserialization , and transformation .
结合使用FileReference , 事件处理程序 , 反序列化和转换 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.