When I try to upload a file with a space in it, it won't upload but will sit there chugging on it. Can you add a warning or change it so it allows spaces in filenames?
Can you explain more clearly what the problem is? What browser are you using? What server side version of CKFinder? What file are you uploading? When exactly CKFinder does not work as expected?
Then I click on Browse Server, bringing up CKFinder.
I click Upload and choose my file. The file is a jpg (under 40kb) and it has a space in the file name (e.g. 'example file.jpg').
When I click Upload File, the text changes to something like 'please wait, file is uploading'.
It sits there for a few minutes before I give up and cancel it.
This isn't a connectivity problem, because I have the same issue when running the server on my own machine. I tried this using Safari and CKFinder 1.4.2.
The problem also crops up when in the image pane (before clicking on Browse Server) in the upload tab.
Thanks for a quick reply. Did you test uploading same file without space in its name? Does it work fine? Can you let me know what server side version are you using (PHP? ColdFusion?) and perhaps a little bit more information about your environment (Apache/IIS? PHP4/PHP5, ColdFusion 7/8/9?).
The file upload works out just fine when there is no space. What I'm asking for is either way to handle files with spaces or a notice; right now it just chugs on the file and users are left sitting there wondering what's going wrong.
Thanks for reply, because we have many different server side versions of CKFinder that can be run in many different environments, I need a little bit more details from you:
Can you let me know what server side version are you using (PHP? ColdFusion?) and perhaps a little bit more information about your environment (Apache/IIS? PHP4/PHP5, ColdFusion 7/8/9?).
Hello, I have a related problem. I am using the ColdFusion CKFinder version and while I can upload files with spaces no problems, I would like to rename the filename to remove the space when it is uploaded. Otherwise spaces in the filename are causing us problems later on.
Does anyone have any suggestions to modify the code to rename the files or prevent file uploads with a warning message if there is a space in the name?
I had to disable the popup warning about invalid file name renamed as this prevented the quick upload tab from continuing to populate the url field after the file had been uploaded. But I don't that would have any other bad effects and everything seems to work great.
Can anyone tell me how to accomplish the same with the PHP version? I have clients who upload images with spaces in the filenames and I'd like to replace them with underscores (or dashes) if possible.
Hi all just like frasernz, I'd like to be able to upload images with spaces, but have the spaces converted to a "_" or something once uploaded. I also have problems with spaces being retained in file names later on in my application.
We use PHP5 on Apache.
I've had a look through \ckfinder\core\connector\php\php5\CommandHandler\FileUpload.php but couldn't locate the parallel change.
Re: Warning about filenames with spaces
What browser are you using?
What server side version of CKFinder?
What file are you uploading? When exactly CKFinder does not work as expected?
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Warning about filenames with spaces
Let me try and detail the problem a bit better.
This isn't a connectivity problem, because I have the same issue when running the server on my own machine. I tried this using Safari and CKFinder 1.4.2.
The problem also crops up when in the image pane (before clicking on Browse Server) in the upload tab.
Re: Warning about filenames with spaces
Can you let me know what server side version are you using (PHP? ColdFusion?) and perhaps a little bit more information about your environment (Apache/IIS? PHP4/PHP5, ColdFusion 7/8/9?).
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Warning about filenames with spaces
Re: Warning about filenames with spaces
Can you let me know what server side version are you using (PHP? ColdFusion?) and perhaps a little bit more information about your environment (Apache/IIS? PHP4/PHP5, ColdFusion 7/8/9?).
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Warning about filenames with spaces
Re: Warning about filenames with spaces
Does anyone have any suggestions to modify the code to rename the files or prevent file uploads with a warning message if there is a space in the name?
Thanks
Fraser
Re: Warning about filenames with spaces
to your needs.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Warning about filenames with spaces
I had to disable the popup warning about invalid file name renamed as this prevented the quick upload tab from continuing to populate the url field after the file had been uploaded. But I don't that would have any other bad effects and everything seems to work great.
Thanks again Wiktor.
Re: Warning about filenames with spaces
Thanks,
Edward
Re: Warning about filenames with spaces
just like frasernz, I'd like to be able to upload images with spaces, but have the spaces converted to a "_" or something once uploaded. I also have problems with spaces being retained in file names later on in my application.
We use PHP5 on Apache.
I've had a look through \ckfinder\core\connector\php\php5\CommandHandler\FileUpload.php
but couldn't locate the parallel change.
Thanks
Re: Warning about filenames with spaces
and do any extra changes you like to the file name straight after this statement.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+