Page 1 of 1

Change file name after upload

Posted: Thu Aug 23, 2012 7:54 pm
by zboina
How do I change the file name when you send to the server?
Using PARAM NAME="template" but it also changes the name of the file where the transfer is interrupted.

Re: Change file name after upload

Posted: Thu Aug 23, 2012 8:46 pm
by support
Template is the correct parameter. I don't understand the issue about interrupted transfer?

Re: Change file name after upload

Posted: Thu Aug 23, 2012 10:05 pm
by zboina
I'm sorry I wrote wrong. What I mean is that we want to the file name has been added "_ok" after the upload to finish. Another person with access to the files on the ftp server needs to see whether the file has already been sent.

Re: Change file name after upload

Posted: Fri Aug 24, 2012 6:52 am
by support
So you need an unique filename for each file to avoid overwrite?

Re: Change file name after upload

Posted: Fri Aug 24, 2012 8:04 am
by zboina
Send a large file ftp. The owner ftp checks if the file is sent in its entirety - must see the file name added "OK". So my script after sending the entire file must be added to the name of "OK".

Re: Change file name after upload

Posted: Mon Aug 27, 2012 9:13 am
by zboina
HELLO!
Please answer me:
How to change the name of the file after the completion of upload?
Send a large file ftp. The owner ftp checks if the file is sent in its entirety - must see the file name added "OK". So my script after sending the entire file must be added to the name of "OK".

Re: Change file name after upload

Posted: Sat Sep 01, 2012 7:41 am
by support
JDiskExplorer does not issue additional FTP request after upload except an optional chmod.
What you could do is use 'forward' parameter to run a server-side script (such as PHP) that will rename the remote file uploaded.