Hi Everyone!
So, I ran into an issue, and can’t seem to figure out what’s going on to fix it. I am using a front end channel form to allow members to add their company to the website. So when they go to add the company, everything works fine no issues, all errors handled correctly, etc.
The form has a file field to let them add a company logo. However, when they go to edit their company info, and try to change the logo, it gives them an error message: Invalid Selection. I double checked all the settings and permissions and everything is setup correctly.
When I try to do the same thing from the super admin account (front-end form), I don’t get the error, and in fact I get the success message, however, the logo doesn’t get updated, and it doesn’t show up in the file manager on the admin control panel side of things. All other fields work fine and as intended.
Here is my code, error message screenshot attached.
<div>
<label for="member-logo">Company Logo</label>
<div class="file-input-container" id="fileInputContainer">
<div class="custom-file-button"><i class="las la-cloud-upload-alt ip-ico"></i> Upload File
<input type="file" class="file-input" id="fileInput" name="member-logo" value="" data-content-type="all" data-directory="6">
<input type="hidden" name="member-logo_directory" value="6">
<input type="hidden" name="member-logo_hidden_dir" value="6">
<input type="hidden" name="member-logo_hidden_file" value="{member-logo}{file_name}{/member-logo}">
</div>
<div class="file-name" id="fileName">No file chosen</div>
</div>
<div class="error">{error:member-logo}</div>
</div>Using EE 7.4.11 - Thanks in advance for any input.
Best Regards, Viktor
Nowadays, stem cells are gaining popularity and can cope with all this very quickly. These innovative methods help regenerate tissues and reduce inflammation, especially for people with chronic pain or injuries, you can read more about this in the article https://ways2well.com/blog/stem-cells-for-neck-pain-what-you-need-to-know and choose an effective treatment method that will help you with all your problems
You should ensure that the file types allowed for upload are correctly set. Sometimes, the error “Invalid Selection” can occur if the file type does not match the allowed types. Check if there’s a file size limit set in your system that might be preventing larger files from being uploaded.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.