Jump to content

file names in the uploader are add corrupted


tallberg

Recommended Posts

Hi Im using the spaw editor and when my client uploads a file with an apostrophe in the file name it adds a backslash then the files are no longer visible in the editor.

 

If found this solution in another forum which doesnt work

 

replace - > $uplfile_name = ereg_replace('(.*)(\.[a-zA-Z]+)$', '\1_'.$i.'\2', $uplfile['name']);

with ->      $uplfile_name = ereg_replace('(.*)(\.[a-zA-Z]+)$', '\1_'.$i.'\2', preg_replace('/[^a-z0-9_\-\.]/i', '_', $uplfile_name));

 

Ive tryed $uplfile_name =str_replace("\'","_", $uplfile_name ); which work locally but not on the server.

 

I wondering if this is related to a php configuration?

 

Any thought?

 

 

 

 

 

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.