Skip Navigation

[Resolved] toolset file transfer client admin

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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Author
Posts
#1278321

hi,
I am trying to find solution and tools to create a fom to upload files (jpg, png) by users to the protected folder on server.
User can see his own files. Admin can add to his account new files.

#1278387

You could let users upload media using a Toolset Form that features some upload fields - those uploads are natively stored by WordPress in the uploads path/folder.

However, the "read" permission (can see) in Toolset Access is applied to all users - it cannot be set to "only allow the uploader to read the image".
It can, however, be set to let only the owner of the image editor else manipulate it.

I think you could create a Post Type as "container" for the images uploaded.
Then in a Toolset Form, editing that post type, or creating new such posts, you can upload images to the posts.
Later you can restrict read access to the posts that are not authored by the currently logged in user in a View, by displaying only posts of the currently logged in author, and in the View, call the images uploaded to the Posts.

This should help to achieve the goal, please let me know if you'd need some example on an online test site.

#1278429

Can you write step by step how to create simple form to upload media and add this form to site?

#1278439

Sure, it's also explained here:
https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/forms-for-editing/

1. Create a Image or other media file type field in Toolset > Custom Fields
2. Create a Post (Edit or Create) Form that edits or creates new posts in the type where above Image Field is attached to under Toolset > Post Forms
3. In the Form, you already will see the image field now.
4. Insert that Form to any page to let it create new posts or into a specific post if it's an edit form.