121 Posts
deralex
7 years ago
1
Topic

Hi,

I have a field for image upload. The upload works fine, images are uploaded to "/images/mysubfolder/123/myimage.jpg" - where "123" is the article id. For storage I use JSON / Article / images[image_intro] to get it stored just like a Joomla! article intro image.

Now there's something strange: Sometimes everything works perfect, but sometimes the path stored in the database loses the article id. So the path is stored as "/images/mysubfolder/myimage.jpg", but the image actually is in a folder with the article id.

Do you have any idea?

Alex

Get a VIP membership
4229 Posts
Kadministrator
7 years ago
0
Level 1

Probably the same problem as here - https://www.seblod.com/community/forums/fields-plug-ins/upload-image-json- article id is not available when you first create an article, upload field uses afterStore event to create folders after article is stored for that reason, but it seems it does not update stored path. Please report that on github tracker.

Get a VIP membership