Mar 27, 2024 05:49 AM
Hi everyone,
I keep having an issue with the URL to the attachment script. It works great for some links but there's a URL that keeps having the same issue: the script runs, it shows a gray icon, and then it automatically deletes the data from those cells.
The URLs are public so that shouldn't be the issue. Some examples URLs that don't work:
https://www.houseoffraser.co.uk/images/products/70936105_h.jpg
https://www.houseoffraser.co.uk/images/products/70582103_h.jpg
https://www.houseoffraser.co.uk/images/products/70080203_h.jpg
Some URLs that do work:
https://cdn-images.farfetch-contents.com/20/22/97/00/20229700_51272260_300.jpg
https://cdn-images.farfetch-contents.com/21/50/43/36/21504336_51620996_300.jpg
https://cdn-images.farfetch-contents.com/18/91/41/79/18914179_41149947_300.jpg
Anyone that knows what I'm doing wrong here?
Mar 27, 2024 09:31 PM
I just attempted to test the links and the URLs that don't work never work, and the URLs that do work...sometimes work, but sometimes don't?
As a test, perhaps you could try uploading them into Google Drive or something and using a Google Drive link instead. If that works fine, then you know that the script is fine and your files are fine, it's just the host that you're grabbing the images from that's giving you problems?
Mar 28, 2024 03:50 AM
Thanks for trying it out! The problem is that I need to cover over 50K items, so downloading them into Google Drive Folders is going to be a hellish job..
My goal is basically to get a preview of those images so I don't have to open up all individual URLs because I need to curate the database.
Mar 28, 2024 06:08 AM
Ah, nah, I was thinking you'd just do it for those 6 links actually to see whether it was an issue with the files / script or the image host, does that make sense?
Also, I just tried to download the image from https://www.houseoffraser.co.uk/images/products/70936105_h.jpg and it was an .avif file, and even when uploading it manually it didn't work. The working links downloaded as .webps though and those uplaoded manually fine!
Apr 02, 2024 01:15 AM
Ah good catch, I tested with some other records and somehow it does delete .webp URLs to images and sometimes it works for this format, looks like .avif it's getting deleted also manually indeed.
Unfortunately still don't know a workaround for this problem 😅