Skip Navigation

[Resolved] cred image uploading and management

This support ticket is created 5 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by Steve 5 years, 5 months ago.

Assisted by: Christian Cox.

Author
Posts
#1287975

I read in a recent post you had made changes to the way cred forms handle images and so want to put forth an issue we struggle with to see if a possible solution to a couple of issues exist now.

This site is for a small museum that has several annual jurried shows. The application is done through a cred form and applicants upload supporting documents including images and pdfs.

We have two issues wed like to streamline

#1 Clean up: we'd like to be able to easily delete all these pdfs and images after the applications have been reviewed. Right now they get interspersed over several folders in the uploads directory and so we have to be careful not to delete other images that might be in those folders

#2 Sometimes the jurors want to have access to the image files locally so they can sort them and rate them in desktop applications

Is it possible that all uploads from a specific form could be placed in a specific folder? that could make both these task substantially easier for us

Thanks

#1288061

Hi, the new method of uploading images utilizes the standard WordPress Media Library uploader instead of our old proprietary upload system. It doesn't change the locations where files are stored, unfortunately, and our developers have objected to modifying the standard upload directories. So no, it's not possible in the current system to change where the uploads are stored, and it's not possible to consolidate all uploads in one directory. That will require custom code.

A couple of workarounds I can think of:
1. Implement a script that deletes file attachments for you automatically. For example, in another ticket a client worked out a way to delete attachments before the post itself is deleted: https://toolset.com/forums/topic/proper-post-attachment-management-via-cred/
This approach is imperfect because programmatically there is no easy way to determine if these items from the Media Library are in use in other places on the site. If you delete the image, it will result in a broken image error anywhere else the image is in use on the site.

2. Create a View or template specifically for Jurors that includes links to each file for a specific post or a list of posts. Then use a browser extension like Download Master to automate the download process in the browser.

#1288139

Christian thanks that script will be of help as in this case the uploaded images will never be used in another context.

Thanks for the quick response