1

Using symfony2, I would like to upload some files only from their path on my PC.

I read an excel file containing some path to pictures (like /home/thibault/pictures/*.jpg) and I want to upload them on my server. So, I do not want a form.

All the documentation I have read deal with upload from a form, is this possible to do that without ?

Thanks in advance,

4

1 回答 1

0

不,这是不可能的。对于您要查找的内容,您需要部署一些本地运行的代理。任何浏览器都不允许您从用户计算机上的文件夹中提取文件。如果要在浏览器中完成,用户必须说出他们想要上传的文件。

于 2013-11-05T09:44:14.867 回答