Reputation: 2440
I have a couple of scripts that worked fine on another server.
Now that I have moved everything on to a new server, the file does not appear in the destination folder. The strange thing is that move_uploaded_file
returns true
.
Also, I printed the post data and there is no error.
Can you guess what's possibly going on. The files I am trying to upload as a test are very small ( 10 kb).
Upvotes: 3
Views: 4250
Reputation: 13509
In my case, Total Commander, used as an FTP client, truncated output to 10000 files in directory. When I connected via SSH using WinSCP I was able to see all ~14000 files in the directory.
Upvotes: 1
Reputation: 29897
The move likely succeeded, check the following:
chmod("/path/to/file.ext", 0755);
to add view rights for the ftp user./dev/null
Upvotes: 3