Item+field specific folder : how to disable file increment ?

More
4 years 7 months ago - 4 years 7 months ago #78505 by bendeb
Hello,
My question is about "image or gallery" field.
I put parameters to "Item+field specific folder" so each user can upload images, stored on a specific folder (related to item ID). But if the user change the image with a new one (in case of rectification), the old image is still stored on the folder, and the new one is incremented with a number (1, then 2, then 3, etc.)
image.jpg
Then image-1.jpg
Then image-2.jpg
And so on.

It's inconvenient for two points :
- there are many versions of each images stored in the folder and, ultimately, it ends up weighing heavily on the server.
- if the user post the link of his image (on a forum for example), he have to edit the link each time he uploads a new one.

Is there a way to correct this ?

Thank for your answer.

Regards.

Flexicontent 4.1.0b1
Joomla 3.9.18
Last edit: 4 years 7 months ago by bendeb.

Please Log in or Create an account to join the conversation.

More
4 years 7 months ago - 4 years 7 months ago #78508 by ggppdk
Hello

Naming -nn is to avoid preventing uploads because of uploading image with same name
we have no way of knowing if the user wants to replace an image or upload extra

Imagine after a year you upload extra images and some of the names collide with older
and they get automatically replaced and LOST !!!

Then we will have users reporting a BUG of images being overwritten and having "Data Loss"

The way it works is like this

1. The (per item-field) image folder contains some images e.g. 20
2. And then you assign some of the 20 images to the image-gallery field e.g. 10 of them,
the rest of images are available for future use ...

The way to go is
we can put limits
- to total number files
- to total file used

This way you will force users to limit images themselves
I will add such limitations


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 4 years 7 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
4 years 7 months ago #78523 by bendeb
Thank for your answer ggppdk ;)
I understand this is due to avoid data lost.
Maybe you can add a simple option in field configuration to choose between "replacement and data lost" and "increment for no data lost".
Then, add a simple message in form to prevent user of the choosen option.
So, users can't complain about data lost if this occur. :D

Is it possible to add these feature (in addition with your suggestion of limit number of images) ?

Regards.

Flexicontent 4.1.0b1
Joomla 3.9.18

Please Log in or Create an account to join the conversation.

More
4 years 7 months ago #78559 by ggppdk
Hello

Last 2 day did work to add support to file manager Statistics re-indexer to re-index data for a field
I will be add more cases and checks to it so that there can be easier cleanup or report of unused files

but if user is linking to the image inside description this will not be reported

about the image - gallery field, will add the per item limits
for
total size limit and total uploaded files


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.332 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline