I'm trying to upload files not from Form but from directory, say the given directory is "D:\\Pictures".
$directory = "D:\Pictures";
How to retrieve the files stored in that folder and then upload to my web application?
I'm using old laravel here, version : 3.2.13.
The answer is you CAN'T. Upload the file not from Form but from directory is an dangerous action. Simply imaging that hackers could create a simple website for submit something and easy to stolen your file easily.
So, reconsider about your goal. Why you have to upload a file from client computer without select from form?
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.