Add filter to wp_unique_filename
|Reported by:||xazure||Owned by:|
Add a filter to wp_unique_filename so it can be modified if necessary.
Currently in wp_handle_upload I am trying to use FTP to put the file elsewhere. Since I can can't use an FTP protocol with move_uploaded_file, I can't just use the upload_dir filter to change the upload directory.
I need to be able to change the unique name directly (so I can look on my FTP server) and then later on I'll handle the move.
There is no way to access this (you can't just affect overrides or anything like that) without completely rebuilding large portions of the uploader. With this one minor hook added, the flexibility becomes much greater.