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

Channel Forms - File Field Issue

How Do I?

avori's avatar
avori
67 posts
one year ago
avori's avatar avori

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

       
creativearc's avatar
creativearc
68 posts
one year ago
creativearc's avatar creativearc

Viktor,

I wonder if it’s a File Permissions issue for the File directory itself. What member groups can post to the File directory?

This of course assumes registered members are those who are uploading.

       
Nastirona's avatar
Nastirona
1 posts
one year ago
Nastirona's avatar Nastirona

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

       
catherinehat's avatar
catherinehat
5 posts
about 11 months ago
catherinehat's avatar catherinehat

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.

       

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.