Go Back   Novahq.net Forum > phphq.Net > phphq.Net Forums
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-14-2008, 02:49 PM
-=Powlo_U.K.=- is offline -=Powlo_U.K.=-
Registered User

Join Date: May 2008
Posts: 2

phUploader - Renamed files

Hi all, Ive uploaded the script and appears to be just what i was looking for, BUT, for some reason when a file gets uploaded the script changes it name. Ie. I upload a file called 'game_trackmaniaGC.tar' but the script changes its name to '1210873713.tar'. Whats that all about?

Like i say this this script is just what im looking for but i really do need the correct file names to be kept.

Any help would be very much appreciated.

Thanks
Reply With Quote
  #2  
Old 05-14-2008, 05:58 PM
IcIshoot is offline IcIshoot

Join Date: Mar 2004
Location: Farmington Hills, MI
Posts: 1,473

Send a message via AIM to IcIshoot Send a message via MSN to IcIshoot Send a message via Yahoo to IcIshoot
My guess is primarily to keep people from overwriting files.

If you upload a file named game_trackmaniaGC.tar, then I come along an upload a different file with the same name, chances are my copy will overwrite your copy.
So the script generates a random string for the name, thus insuring that the chances of files getting overwritten are next to none.


IcI
Reply With Quote
  #3  
Old 05-14-2008, 07:57 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,925

Set $random_name in phUploader.php to false and it wont change the file names..
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #4  
Old 05-15-2008, 11:29 AM
-=Powlo_U.K.=- is offline -=Powlo_U.K.=-
Registered User

Join Date: May 2008
Posts: 2

Quote:
Originally posted by Scott
Set $random_name in phUploader.php to false and it wont change the file names..
Thank you Scott, i feel like such an idiot now as the answer was starring me in the face.

Thanks again dude.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
phUploader Customize hysteriksmile phphq.Net Forums 4 03-24-2010 11:41 AM
PhUploader problem buggerwepisspoo phphq.Net Forums 0 09-21-2008 06:18 PM
phUploader- link to all files lolfake phphq.Net Forums 1 06-30-2008 05:52 PM
phUploader sof-com phphq.Net Forums 1 05-25-2008 02:50 AM
phUploader help lodupersempre phphq.Net Forums 0 05-12-2008 08:30 AM


All times are GMT -5. The time now is 10:27 PM.




Powered by vBulletin®