Skip Navigation

[Resolved] Upload of confidential images via form

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user doens't want there media gallery items to be access directly from a URL.

Solution:

This can be done by following the instructions in the link below.
https://www.wpbeginner.com/plugins/how-to-restrict-media-library-access-to-users-own-uploads-in-wordpress/

This support ticket is created 5 years, 8 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by anthonyH-5 5 years, 8 months ago.

Assisted by: Shane.

Author
Posts
#1220093

Hello, I have created a new user signup form, which requires the uploading of a passport photo.

I set up the form using the image field, but in testing, I noticed that the images go straight to the WordPress media area, which is public.

How can I protect these image uploads, so that they can still be uploaded securely?

Thanks in advance
Anthony

#1220345

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Anthony,

Thank you for contacting our support forum.

You will need to protect the image from direct access.
https://wordpress.org/plugins/prevent-direct-access/

Try using the plugin that i've sent above to protect your image uploads in the media gallery.

Thanks,
Shane

#1220552

Hi Shane,

Thanks for your reply. Unfortunately, the free version doesn’t support this.

Is there a better way? I’d rather not rely on 3rd party plugins if possible, and would prefer to remain within the toolset system.

Out of interest, would it work with Toolset and Download Manager? https://wordpress.org/plugins/download-manager/

Thank you,
Anthony

#1221003

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Anthony,

There isn't an internal solution for this using Toolset.

Ideally the issue is to block direct access to the media file itself.

The download manager would work but it seems a bit heavy for what you are trying to achieve.

I was able to find another solution for you.
hidden link

Please let me know if this helps.
Thanks,
Shane

#1221774

Hi Shane,

Thanks again for your help; the link is very useful.

One last question please - is it possible to use the upload form to send a file or image directly to the WP admin, rather than store it on the server?

Thanks,

Anthony

#1221788

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Anthony,

Unfortunately no it is not.

You can send the link to the admin but the file will still get uploaded to the wordpress uploads folder.

Thanks,
Shane

#1221802

My issue is resolved now. Thank you!