Hello!
I'm trying to list all files (. DOC and. PDF) contained in a specific Web directory.
The problem is that I do not have access. I can only download with the full path of the file.
Example:
Directory 1: http://xxx.site.com/uploads/local20/40
Files:
45677.pdf
54354.doc
65767.doc
54354.pdf
43243.pdf
...
Directory 2: h t t p:// xxx . site . com / uploads / local20 / 41
Files:
45453.pdf
67566.pdf
89798.pdf
89898.doc
52254.pdf
...
I can manually download the files of directory 40 and 41, because I know your path, then write: h t t p:// xxx. site . com / uploads / local20 / 40 / 65767.doc (Download -> OK)
But how to download all the files contained in this directory without knowing the names of files? Or at least list the names of all files.
Obs 1: When I type only the directory (without the name of the file) it returns me an error in XML format. Ex: h t t p: // xxx . site . com / uploads / local20 / 40/
Response: XML Error
...
NoSuchKey
...
Obs2: The Web application use the PHP language.
...
Any suggestions would be appreciated.
Thanks.