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

Regular members can't upload, only Super Admins.

Development and Programming

mhallaba's avatar
mhallaba
32 posts
9 years ago
mhallaba's avatar mhallaba

Using a channel form to upload one of the channel fields, which is a file type.

{field:video_file}

For the Super Admin (me) I can attach a file and upload it just fine and it shows up in my posts.

For my regular members (tested with one of their accounts) it says that the field_id_5 is missing (the video file).

They can post other things, just not upload files.

Help?

       
Derek Jones's avatar
Derek Jones
7,561 posts
9 years ago
Derek Jones's avatar Derek Jones

What version are you running, @mhallaba?

       
mhallaba's avatar
mhallaba
32 posts
9 years ago
mhallaba's avatar mhallaba

3.1.1

       
Derek Jones's avatar
Derek Jones
7,561 posts
9 years ago
Derek Jones's avatar Derek Jones

Can you share your full Channel Form tag (with the complete form HTML)? Use code blocks for styling: [code][/code].

       
mhallaba's avatar
mhallaba
32 posts
9 years ago
mhallaba's avatar mhallaba
Can you share your full Channel Form tag (with the complete form HTML)? Use code blocks for styling: [code][/code].

Here is the code. Works perfectly the way I want it for the Super Admins, but not for members.

<pre><code>{exp:channel:form channel="video_post_uploaded"}

Post Title:

<input type=”text” name=”title” id=”title” value=”{title}” class=”form_input”>

<input type=”hidden” id=”url_title” name=”url_title” value=”{url_title}” class=”form_input”>

Upload Video:
{field:video_file}
{instructions:video_file}

You can use these handy tools to grab your videos from Twitch/YouTube
<a href="https://nightdev.com/twitchdown/target=_blank" rel="noopener">http://52.71.177.47/twitch_logo.jpg</a> <a href="http://www.clipconverter.cc/target=_blank" rel="noopener">http://52.71.177.47/youtube_logo.jpg</a>
Note: these are third party utilities not directly supported by REKT.GG

Game:

<select name=”game_title_uploaded” class=”form_dropdown”> {options:game_title_uploaded} <option value=”{option_value}”{selected}>{option_name}</option> {/options:game_title_uploaded} </select>

Description:

<input name=”description_uploaded” class=”form_input”>

{status_menu} <select name=”status” class=”hidden”> {select_options} </select> {/status_menu}

<input type="submit" value="Post It!" class="submit_button">
<a href="http://index.php" class="secondary_button">Cancel</a>

            {/exp:channel:form} [/code]
       
Derek Jones's avatar
Derek Jones
7,561 posts
9 years ago
Derek Jones's avatar Derek Jones

Thanks mhallaba; I’m not replicating though. Do you have any channel form, file, or entry submission related add-ons installed?

       
mhallaba's avatar
mhallaba
32 posts
9 years ago
mhallaba's avatar mhallaba

This is what i have installed.

Black/White List 3.0.1

Discussion Forum 3.1.20

Email 2.1

Emoticon 2.0

IP to Nation 3.0

Markdown 2.0

Metaweblog API 2.2

Moblog 3.2

Pages 2.2

Query 2.0

Rich Text Editor 1.0.1

RSS 2.0

RSS Parser 2.0

Simple Commerce 2.2

Spam 1.0.0

Statistics 2.0

XML Encode

       
Derek Jones's avatar
Derek Jones
7,561 posts
9 years ago
Derek Jones's avatar Derek Jones

So no add-ons in the third-party table at all then. Can you log in as a member of that group and cut and paste the error verbatim?

       
mhallaba's avatar
mhallaba
32 posts
9 years ago
mhallaba's avatar mhallaba

The form you submitted contained the following errors

field_id_5: This field is required

Return to previous page.

field_id_5 is my file field.

       
mhallaba's avatar
mhallaba
32 posts
9 years ago
mhallaba's avatar mhallaba

Is there anything in the form styling that could impact this?

I removed the default form styling sheet (deleted it) and am using my own styling code.

But it works for the Super Admin…. and my members can submit other kinds of data, just not uploaded file (input, drop down menus work).

       
Derek Jones's avatar
Derek Jones
7,561 posts
9 years ago
Derek Jones's avatar Derek Jones

Shouldn’t, unless you are using JS to change the form data before it is submitted. Only the POST data matters.

  1. Is that field field a required field?
  2. Is it set to only use a specific file upload location?
  3. Does this member group have permission to use that group in the File Manager?
       
mhallaba's avatar
mhallaba
32 posts
9 years ago
mhallaba's avatar mhallaba

1) field is required

2) field is set to use a folder called “user uploads”

3) folder “user uploads” is set to allow uploads by “members” and permissions on the folder are set to allow all.

No category groups are selected though.

Is that a required field?

       
Derek Jones's avatar
Derek Jones
7,561 posts
9 years ago
Derek Jones's avatar Derek Jones

Everything checks out, mhallaba, and I’m able to post and upload using your identical channel form tag. Sounds like one of our engineers may need to log in and debug directly on your install. Please put in a support ticket and we’ll be happy to dive deeper.

       
mhallaba's avatar
mhallaba
32 posts
9 years ago
mhallaba's avatar mhallaba

Ticket has been submitted. Thanks for your prompt responses.

       

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.