Newbie here.....
I would like to upload my pictures from another program that allows spaces in the file name.
Is there an add on that will replace the spaces in the file name with a underscore so the file name will be recognized by PiWigo?
Thanks, Anne
Offline
Using the upload form or a program that uses the API shouldn't be a problem.
If you are talking about (FTP) upload to the physical galleries/ album structure, use [extension by Piwigo Team] LocalFiles Editor to add this to the local configuration to accept space characters in file and directory names:
$conf['sync_chars_regex'] = '/^[a-zA-Z0-9-_. ]+$/';
(between the <?php and ?> markers in the text edit).
See also How To Add Pictures ... by FTP.
Offline
Thanks for the reply, but it still rejects files with spaces in the filename.. Anne
Offline
What method/procedure do you use to upload?
Offline
I use Filezilla and upload a complete "directory/sub-directories/images.jpg" , as is in use now.
I upload my directory to the "galleries" directory and then run synchronize.
Anne
Offline
Sounds good. Adding that line to the local config should work then. Make sure there is actually a blank between . and ]
But maybe there are other characters in directory/file names that are not listed in the expression?
Offline
thanks... I will be back home Friday and will check for other characters that may be in the names.. Anne
Offline
Sorry it took me so long to get back.. I tried several things and no luck, so I uninstalled and reinstalled the whole project, and so far so good.... still having problems with uploading and display of files other than image files. All of the upload plugin modules I have tried for uploading a non image file such as an mp4, fail to upload the file and gives me an extension error. If I FTP the same file it uploads and plays just fine....
I am an old user of the program Gallery 2, and am surprised PiWigo is so restrictive . Maybe it is just I have not found the right set of plugin modules yet, anyway, thank you for all of your help.... Anne
Offline