Announcement

#1 2020-09-27 23:57:05

Anne-FORUM-PiWigo
Member
2020-09-27
5

upload filenames with spaces, from other program

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

 

#2 2020-09-28 02:21:35

erAck
Only trying to help
2015-09-06
1015

Re: upload filenames with spaces, from other program

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:

Code:

$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.


Running Piwigo at https://erack.net/gallery/

Online

 

#3 2020-09-28 23:42:43

Anne-FORUM-PiWigo
Member
2020-09-27
5

Re: upload filenames with spaces, from other program

Thanks for the reply, but it still rejects files with spaces in the filename..  Anne

Offline

 

#4 2020-09-29 01:58:29

erAck
Only trying to help
2015-09-06
1015

Re: upload filenames with spaces, from other program

What method/procedure do you use to upload?


Running Piwigo at https://erack.net/gallery/

Online

 

#5 2020-09-29 15:44:04

Anne-FORUM-PiWigo
Member
2020-09-27
5

Re: upload filenames with spaces, from other program

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

 

#6 2020-09-30 10:11:36

erAck
Only trying to help
2015-09-06
1015

Re: upload filenames with spaces, from other program

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?


Running Piwigo at https://erack.net/gallery/

Online

 

#7 2020-10-02 08:54:29

Anne-FORUM-PiWigo
Member
2020-09-27
5

Re: upload filenames with spaces, from other program

thanks... I will be back home Friday and will check for other characters that may be in the  names.. Anne

Offline

 

#8 2020-10-07 18:37:20

Anne-FORUM-PiWigo
Member
2020-09-27
5

Re: upload filenames with spaces, from other program

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

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2021 · Contact