Hey Solidus network ! Has any of you ever had the...
# support
s
Hey Solidus network ! Has any of you ever had the same problem while uploading from admin a pictures for a product ? Thank you in advance !
g
Hello @Sébastien Ternest. According to https://api.rubyonrails.org/classes/ActiveStorage/IntegrityError.html, the error is raised when "uploaded or downloaded data does not match a precomputed checksum. Indicates that a network error or a software bug caused data corruption." I'm assuming that you're able to upload pictures successfully on your development machine. Is that correct?
s
It’s not working on localhost either
Hello George btw ! 🙂
g
Okay. I would try to make it work first on localhost before testing it on a server. As for the error, have you checked these questions in StackOverflow? https://stackoverflow.com/search?q=ActiveStorage%3A%3AIntegrityError
s
This is the error message I get when I try locally :
g
Yep, ActiveStorage::IntegrityError. That's the same error you're getting from Heroku.
s
Do you think I should reset my database ?
I think it’s because I change the size of a pic before uploading and this pic doesn’t match a precomputed checksum
g
Okay, what happens if you don't change the size of the pic? Do you still get the IntegrityError?
s
It was working with other images.
Now when I go to my admin panel and click to see my products : I ve this message :
g
Looks like you have to reset your database 😞