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?
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]
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
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).
Shouldn’t, unless you are using JS to change the form data before it is submitted. Only the POST data matters.
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.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.