using file_rename_mask

XUpload related questions

Moderator: admin

Message
Author
Aktar
Posts: 3
Joined: Jan 30, 2007 4:41 pm

using file_rename_mask

#1 Postby Aktar » Feb 07, 2007 10:21 pm

is there a way I can replace blank space with an underscore :?:

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#2 Postby PilgrimX182 » Feb 08, 2007 7:41 am

There's a quick hack for this. In upload.cgi find string

Code: Select all

$filename =~ s/.*\\([^\\]*)$/$1/;

and add after it:

Code: Select all

$filename=~s/\s/\_/g;

dvmoore
Posts: 3
Joined: Sep 13, 2007 3:39 am

#3 Postby dvmoore » Sep 13, 2007 4:05 am

I need to use this hack too but this line of code is not in my version of the upload.cgi

I have the latest version of xuploadPRO. Please advise.

Kind Regards,
Dante

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#4 Postby PilgrimX182 » Sep 14, 2007 7:30 am



Return to “XUpload”

Who is online

Users browsing this forum: No registered users and 0 guests