Double quotes in upload file name on the Mac?

6 posts by 2 authors in: Forums > CMS Builder
Last Post: March 8, 2015   (RSS)

By gkornbluth - March 3, 2015 - edited: March 3, 2015

Hi All,

My clients are (old)  Mac users.

They just tried to upload some images that had double quotes in their file names and the upload dialog reported that the file name extension was not allowed.

Removing the double quote in the file name solved the problem.

Since the double quote is apparently not illegal on a mac, ( they are on  a PC), is there a way of  using preg_replace to grab illegal characters (and replace them with legal ones) in the image file names before they hit the uploader (2.63, flash uploader active)?

Or is there something else going on here?

Thanks,

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By Dave - March 5, 2015

Hi Jerry, 

What was the specific filename?  If you had something like "mypicture.jpg" or mypicture."jpg" we wouldn't be able to get the .jpg off the end.  

Let me know some more details and I'll check it out.  Thanks!

Dave Edis - Senior Developer
interactivetools.com

By gkornbluth - March 6, 2015

Thanks for looking at this Dave,

The file names would have been something like myphoto-January-1014-12"x24".jpg, where the " represents inches

(If we would just switch to the metric system the problem would be solved once and for all...)

Best,

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By Dave - March 6, 2015

Hi Jerry,

>(If we would just switch to the metric system the problem would be solved once and for all...)

Yea, or convince everyone to switch back to imperial!

I can't reproduce the issue locally.  If I upload a file with this name: myphoto-January-1014-12"x24".jpg

I get an upload with this name: myphoto-january-1014-12-x24.jpg

Can you reproduce it?  

Dave Edis - Senior Developer
interactivetools.com

By Dave - March 8, 2015

Thanks Jerry,  I've received your email and we can continue the conversation there.  Cheers!

Dave Edis - Senior Developer
interactivetools.com