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

New Item Upload #11

Open
senorlocksmith opened this issue Feb 14, 2023 · 1 comment
Open

New Item Upload #11

senorlocksmith opened this issue Feb 14, 2023 · 1 comment
Labels
question Further information is requested

Comments

@senorlocksmith
Copy link

senorlocksmith commented Feb 14, 2023

Considering in a rails app that you would like to create an entry in a standard CRUD method and in the process of creating that entry you have several photos to upload. Using this gem and current method now you have to upload the photos after the fact otherwise it throws an error for duplicate photos because the create function is trying to send the same photos that were sent using direct upload.

Is there a way to use this gem, setup a standard scaffold CRUD and create the entry without the duplicate error without going back in after the entry was created?
Screenshot 2023-02-14 170409

@geetfun
Copy link
Member

geetfun commented Feb 25, 2023

It looks like from the error screenshot you sent (very useful btw, thanks), the params is duplicating the params.

I suspect the form fields may be a good place to look for the issue. What does your form view (eg. _form.html.erb) look like?

@geetfun geetfun added the question Further information is requested label Feb 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants