6 years ago
5
Topic

Dear all,

After an image is uploaded from Seblod field type, "image upload", this image could not be displayed. I am aware of using typography. The file path is okay, regardless of absolute or relative, I tried both.

The image is uploaded to the server successfully, but the image can't be shown.

I tried to access the image URL directly but gave me 404. I went on to my hosting cpanel, via "file manager", the file can be accessed correctly. I checked the file (644) and folder permission (755), which is alright.

Using Joomla form media, to upload the image, and it can be displayed correctly in Joomla.

I need this as I need to restrict user uploading their image to a specified folder, for that content type.

Thank you for your in reading and assisting!

Regards,
Sam

Get a Book for SEBLOD
4229 Posts
Kadministrator
6 years ago
4
Level 1

Check with your hosting provider if they are blocking access to those urls with some protective system e.g. mod_security

6 years ago
3
Level 2

Dear Klas,

Thanks for your response.

The option "1 folder per item" is selected. I narrowed to the issue of after Seblod Image upload field, uploaded the picture, the URL stored in the database is without the folder name. Hence, the correct URL, supposedly with the "1 folder per item" is not inserted into the database.

Example of what is stored:

[Default Folder]/1/test.jpg -> this is uploaded correctly and accessible

[Default Folder]/test.jpg -> this is what seblod stored in the database, hence the image is not accessible

4229 Posts
Kadministrator
6 years ago
2
Level 3

Are you using latest Seblod?

6 years ago
1
Level 4

Yes, Joomla 3.7.2 + Seblod 3.11.3

Has it got to do with the storage section of the field? Maybe I have to set a variable of the folder name, to the object?

This post is relevant to my case. Third-party module/plugin uses article intro image to display image in their module, else if I use as new Seblod field, third-party module/plugin will not use other image field set in Seblod Intro.

Maybe can copy the URL from Seblod image field to the Article Intro Image field, using conditional state? But how could it copy from a standard content to JSON content?

Update:

I faced the same problem like this post , regardless of using the existing article field or a new image field created, the image URL was only properly stored in intro_image field correctly when editing but not when creating new content.

I also tried to use conditional state, when the new created image field "is changed", let the article image field "is filled by" the new image field. This method doesn't work.

4229 Posts
Kadministrator
6 years ago
0
Level 5

This is a bug, I made an issue on github https://github.com/Octopoos/SEBLOD/issues/433

I'm afraid your only short-term option is to use article intro field.

Get a VIP membership