Page 1 of 1
user upload image to frontend gallery, the image is not displayed.
Posted: 22 Feb 2021, 13:14
by Patrick1957
Version Phoca Gallery
4.4.1
Hi !
user image upload to frontend gallery, the image is not displayed.
The image is well in the server.
The file name is: Paysage Version1.jpg
Before the last update, all uppercases and spaces worked.
Now that doesn't work anymore.
Where and how do I change the code to make it work again?
Regards
Patrick
Re: user upload image to frontend gallery, the image is not displayed.
Posted: 22 Feb 2021, 14:48
by Jan
Hi,
what you mean with:
"Before the last update, all uppercases and spaces worked."
When you upload image without spaces, do you get the same problems?
Where exactly is the image not displayed?
(Spaces were never supported as it can have different issues on different servers, see:
https://www.phoca.cz/documents/2-phoca- ... ing-images )
You can see the changes here:
https://github.com/PhocaCz/PhocaGallery ... ebf55de568
Jan
Re: user upload image to frontend gallery, the image is not displayed.
Posted: 22 Feb 2021, 14:59
by Patrick1957
Thanks , Jan
without spaces, no problem.
image is not displayed in user gallery and in Phoca ACL
Re: user upload image to frontend gallery, the image is not displayed.
Posted: 22 Feb 2021, 15:05
by Jan
Hmmm, I am testing it now on windows, and I can even upload and add image with spaces (but it is not recommended). There were no changes regarding spaces so really hard to say.
What exactly is not displayed, the image itself or the image item?
When no whole item, didn't you get any error message when uploading? Did you test both methods - single upload and multiple upload?
Jan
Re: user upload image to frontend gallery, the image is not displayed.
Posted: 22 Feb 2021, 15:35
by Patrick1957
It's very weird, now it seems to be working normally .... Yet I haven't changed anything.
Re: user upload image to frontend gallery, the image is not displayed.
Posted: 22 Feb 2021, 15:44
by Jan
Hmm, really hard to say what could be wrong there
Jan
Re: user upload image to frontend gallery, the image is not displayed.
Posted: 25 Feb 2021, 01:09
by Jan
BTW (thank you for the info from Christine) if you are using spaces, it can really work differently on different systems, can work on Windows but can be problematic on Linux, so it is really not recommended to use them.
Jan
Re: user upload image to frontend gallery, the image is not displayed.
Posted: 25 Feb 2021, 01:46
by Jan
But try to test this version:
https://github.com/PhocaCz/PhocaGallery ... .2Beta.zip
where I have reverted the changes, so maybe it will work for you. Just install this version (do not uninstall the previous version) and let me know.
Jan
Re: user upload image to frontend gallery, the image is not displayed.
Posted: 25 Feb 2021, 02:55
by Patrick1957
Thanks, but
I edited this code :
administrator\components\com_phocagallery\libraries\phocagallery\file\fileupload.php
line 93, 263, 358, 499
I added everywhere " strtolower "
$filepathImgFinal = JPath::clean($path->image_abs.$folder.strtolower($file['name']));
$filepathImgTemp = JPath::clean($path->image_abs.$folder.$tempFolder.strtolower($file['name']));
Now it works fine. For example, this file : ' Essais éct Fin.jpg ' is loaded
Re: user upload image to frontend gallery, the image is not displayed.
Posted: 25 Feb 2021, 13:36
by Jan
So, yes, these are the changes which were reverted, so I will release the 4.4.2 and it should work.
Thank you for the info.
Jan