Change file name after upload

Explorer-like frontend add-on to upload/download.
Post Reply
zboina
Posts: 5
Joined: Thu Aug 23, 2012 11:32 am

Change file name after upload

Post 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.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Change file name after upload

Post by support »

Template is the correct parameter. I don't understand the issue about interrupted transfer?

zboina
Posts: 5
Joined: Thu Aug 23, 2012 11:32 am

Re: Change file name after upload

Post 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.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Change file name after upload

Post by support »

So you need an unique filename for each file to avoid overwrite?

zboina
Posts: 5
Joined: Thu Aug 23, 2012 11:32 am

Re: Change file name after upload

Post 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".

zboina
Posts: 5
Joined: Thu Aug 23, 2012 11:32 am

Re: Change file name after upload

Post 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".

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Change file name after upload

Post 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.

Post Reply