FactorioBlueprints / factorio-prints

factorioprints.com
https://factorioprints.com/
167 stars 32 forks source link

Image Uploader is not working #856

Open GoktugOzturk opened 4 weeks ago

GoktugOzturk commented 4 weeks ago

Hello,

I've been using factorioprints to share my blueprints for a while. I wanted to update a blueprint, but when i try to upload the thuımbnail image, loading bar loads upto 100 and then it gets stuck.

These are the warnings on the console image

motlin commented 3 weeks ago

Please force refresh to get a new version of the site. It now takes imgur urls and doesn't accept uploads at all.

GoktugOzturk commented 3 weeks ago

Thanks. it is changed to imgur url input when i force refreshed. Now I have another issue, Existing blueprints have a value for image like https://firebasestorage.googleapis.com/v0/b/facorio-blueprints.appspot.com/o/train%20stations%20cover.png?alt=media&token=958d687c-88dc-4466-871a-d741e5e7a896 When i try to save the page without changing the existing thumbnail, it gives an error;

Error editing blueprint
Please use a direct link to an image like https://imgur.com/{id} or https://i.imgur.com/{id}.png

I upload the image to imgur and get the link from it and then it allows me to save. The problem is; when i try to edit the same blueprint again, it shows the previous firebase url instead of new imgur one. I trıed to force refresh assuming the old url somehow stays on the cache, but that is not the case.

I think you have separate image columns for imgur and firebase ones. You save the img url to the correct column but fill the edit form with the wrong column again.

motlin commented 3 weeks ago

And you already tried force refreshing while on the Edit page?

GoktugOzturk commented 3 weeks ago

Yes. I tried that as first thing. I even logged in from another computer.