Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Upload Error

Quote Reply
Upload Error
Using Windows 2000 for local use. I get following error repeatedly. I have enabled sharing & writing to the folder as well. Can't complte an upload. The Hash folder is created, but no file appended. Any suggestions?

Illegal character found in c:/webwork/yachtcom/virtual/dbuploads3/3/3-sheep2.jpg


Regards & Thanks
John


Quote Reply
Re: Upload Error In reply to
Hi,

This is a bug, edit GT/SQL/File.pm, line 647 and change:

return $_[0] =~ /^[\w\/\\\-\.%]+$/;

to:

return $_[0] =~ /^[\w\/\\\-\.%:]+$/;

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Upload Error In reply to
Or line 551 on my version - 2.0.5

Cheers,
R.


Quote Reply
Re: [Alex] Upload Error In reply to
Hi Alex,

I have this error with the file name like "myimage(2).jpg". Something likes a copy of windows file.

Is this a bug or something else?

Cheers,

Cheers,

Dat

Programming and creating plugins and templates
Blog

Last edited by:

tandat: Oct 9, 2007, 8:29 PM
Quote Reply
Re: [tandat] Upload Error In reply to
Looks like you'd need to add ( ) to the regex.