Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max files requires a minimum of 2, not 1 #250

Open
JohnSmall opened this issue Oct 1, 2024 · 1 comment
Open

Max files requires a minimum of 2, not 1 #250

JohnSmall opened this issue Oct 1, 2024 · 1 comment

Comments

@JohnSmall
Copy link

JohnSmall commented Oct 1, 2024

Using Rails 7.2, with import maps, in my erb views I have

<%= form.filestack_field :image, 'Test Filestack!', pickerOptions: { 'maxFiles': 2 }, onFileUploadFinished: 'onFileUploadFinishedCallback' }, id: SecureRandom.uuid , input_id: SecureRandom.uuid %>

If I set maxFiles to 1 it allows me to select a file, but it's never uploaded to Filestack.

@kopchickm
Copy link

I'm not sure if this is the same issue, but I'm seeing similar behavior now. Possibly a regression? With maxFiles set to 1, after selecting an image to upload, a blue beach ball appears and never goes away.

Looking at the console, I can see there's a js error. See the attached gif for details. Note: when I change maxFiles to 2, everything works fine.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants