Crocoblock / suggestions

The suggestions for CrocoBlock project
195 stars 78 forks source link

Solve the AVATAR upload by the form, users are exchanging the photos and the old ones remain on the server. #4724

Open ofmarconi opened 2 years ago

ofmarconi commented 2 years ago

I'm using Profile Builder + Forms to upload Avatar image.

But the user can upload as many photos as he wants, being able to fill my server with unnecessary photos.

My request is:

Some way to delete photos not used by any user;

OR

Instead of uploading a new photo, the submission form replaces the current photo on the server as this plugin does on the backend: https://br.wordpress.org/plugins/enable-media-replace/

I know it may be impossible to attach how it works with posts: https://www.facebook.com/groups/CrocoblockCommunity/posts/4196295160461873/?comment_id=5109099155848131&reply_comment_id=5119300328161347&__cft__[0]=AZVBqaZkiaJO8-GOiccafWiydfkEenXRYxoHj-QuuOakXxIqgLbT4G3CPHetTp7g_Jnf8YxNJHDPHD_A-wWCi62OO5c3eqS08863mzP8UKasYDD3xzuhGF4oj8T5hROjc76rUa55sd4xpuMKYoc9Bsj0&__tn__=R]-R

But it's something to think about...

========

An alternative solution would be to compress the images that are sent by the form, even if it is larger than 150px vs 150px, the form will cut the image to that size and compress the file, discarding the original. Is it possible to compress images sent from forms?

nreljed commented 2 years ago

yes , the current wordpress upload system has reached its limits. 😅

I didn't think it was possible...but here we are now

A new modern upload system is needed with a simple and mobile friendly design I don't think the wordpress community is worried about this so we don't expect to see a change from wordpress team.

However 😃 crocoblocks with jetengine can introduce an answer to the question of:

loss of control over uploads and their life on the server.

by dedicating a complete beta for this problem

thank god🙏😃 we already have an overview of the work of competitors

the solution quite naturally is to take what is best on

🔎ACF field media https://www.advancedcustomfields.com/resources/gallery/

🔎PODS field media https://docs.pods.io/fields/file/

🔎My ideas

Combine everything like a filepond or write similar code from scratch.

and always keeping in mind that there will always be projects (except simple blog) who required this extensive control.

there will surely be a page or parameters entirely dedicated to the upload rules of one or more CPTs real control over uploads and set strict rules for their validation and elimination backend or frontend using media/gallery field.

it will inevitably be the best robust and modern system for uploading out of the box a real ++ and a correct answer to this problem

there is a good chance that one day the devs will offer a complete solution

as projects have increasing upload needs and the server space is limited. the current wordpres upload system is no longer meets our needs.😓