I was wondering if anyone knew of a simple script that can run on my vps that would rename the extension of all the files that are uploaded into a specific folder?
This is a discussion on Auto rename uploads in the VPS & Dedicated forum
I was wondering if anyone knew of a simple script that can run on my vps that would rename the extension of all the files ...
I was wondering if anyone knew of a simple script that can run on my vps that would rename the extension of all the files that are uploaded into a specific folder?
Is this a one off thing or will this be recurring?
The only thing I can think of off the top of my head would be to setup a cron job. If you're using cPanel (possibly in other panels as well), there is a simple admin area to set them up.
Nomsane?
That is all.
It isn't difficult to write something like this, but as LeeUmm said, before we can help you we need to know how you plan to use it:
1. You upload a bunch of files via FTP/SCP then run the script to maintain them.
2. You have a directory that is somehow receiving files and periodically you want to run a script to rename them.
3. You have we web-based form that visitors use to upload files. Upon successful upload the file is renamed and stored.
4. Something entirely different
Let us know what you want to do and we can work from there.
--Jason
thanks for the replies.
Yep what happens is this:
1) user uploads .jpg into folder
2) .jpg gets renamed to .jpeg
3) now other programs can utilize the .jpeg
What language is your script that is allowing the user to upload the jpg written in ?
Copyright © 2011 JaguarPC.com
Bookmarks