At least one valid file should be uploaded.

Created on 14 August 2017, over 7 years ago
Updated 30 January 2024, 10 months ago

Hi,

I am facing issue in uploading image.

Step to reproduce:

  • Select and upload image
  • I can see uploaded image thumbnail
  • On final submission. it throw error "At least one valid file should be uploaded."

Any help would be appreciated.

💬 Support request
Status

Fixed

Version

2.5

Component

Code

Created by

🇮🇳India hasmimeraj

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇪🇸Spain juandels3 Seville

    I had this error in Drupal 8.9.20. The error was occurring in two of the three website environments, although it was occurring in any web browser and user role.
    The final solution for me has been #15. Specifically, I modified the dropzonejs.settings.yml configuration by adjusting:

    tmp_upload_scheme: public
    
  • 🇻🇳Vietnam tuthanh

    I face this issue with version 8.x-2.8, but on anonymous role, authenticated users have no problems.

    My site has a form for guest user to submit a node with images. I use DropzoneJS for uploading images.

    It works properly for logged in users. But for guests, it always complains "At least one valid file should be uploaded".

    Can somebody help?

  • 🇪🇸Spain juandels3 Seville

    Hi @tuthanh. I suggest you check the anonymous role permissions for the DropzoneJs module. If they are correct, check solution #15 💬 At least one valid file should be uploaded. Fixed .

Production build 0.71.5 2024