Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 5 of 5

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

  1. #1
    JPC Member
    Join Date
    Apr 2007
    Posts
    46

    Auto rename uploads

    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?

  2. #2
    04 LeeUmm's Avatar
    Join Date
    Oct 2002
    Location
    Hamilton, Ontario
    Posts
    642
    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.

  3. #3
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    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
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  4. #4
    JPC Member
    Join Date
    Apr 2007
    Posts
    46

    hey thanks

    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

  5. #5
    JPC Member
    Join Date
    Feb 2008
    Posts
    6
    What language is your script that is allowing the user to upload the jpg written in ?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •