We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Allow non-admin to upload file through Channel Form template

How Do I?

shinka's avatar
shinka
147 posts
4 years ago
shinka's avatar shinka

I am in the process of upgrading an old EE project of mine from v 1.6.9 to the latest 6.0.6. It’s taken some work, but things are progressing nicely. Kudos for the EE engineers for their upgrade process, it’s quite impressive!

The last major feature it seems that I am having trouble with is the file upload feature for the Channel Form template as a non-admin.

Everything is working properly if I am logged-in as an admin, but when I’m logged-in as a user with a limited role, they can submit the form but not upload a file.

I have made sure that their Member Role has access to the CP, the File Upload Directory is set to allow that Role to Upload a File, the Role has access to the relevant channel. Everything else about the form works for them, except uploading a file.

       
vw000's avatar
vw000
482 posts
4 years ago
vw000's avatar vw000

Yes, it’s possible, I did the same last week. In my case, the code in the template was wrong, reason why I had no errors but no files were uploaded either as a member. Worked fine as admin.

The documentation regarding the fields for the file upload form are wrong and not clear. If you checked all permissions for the user role and channel, I think you are hitting the same problem. I took me 24 hours to figure out why I was not able to upload files as a member.

Post your channel form code to check what is wrong. Also check my previous post on this: https://expressionengine.com/forums/topic/253177/minimum-fields-required-for-file-uploading

       
shinka's avatar
shinka
147 posts
4 years ago
shinka's avatar shinka

It appears that it wasn’t going to work if the default user assignment wasn’t given at least basic CP access. I restricted it as much as possible, but it wasn’t a need that I was expecting. I’ve got it working now, thanks for your input.

       
vw000's avatar
vw000
482 posts
4 years ago
vw000's avatar vw000

I’m sure that is not the case. My user does not have access to the control panel. There is no need to enable that in order for users to upload files with expression engine.

       
Filippo_Me's avatar
Filippo_Me
50 posts
4 years ago
Filippo_Me's avatar Filippo_Me

Hi,

i am in the same situation and have not been able to resolve. I use EE 6.06 with channel form. Guest publishing permissions are enabled. When the user is not logged in they get the following error “The upload destination folder does not appear to be writable”.

How to solve? In the template I am simply using the {field: document_1} tag. Do you suggest using manually constructed file field?

thanks

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.