AbanteCart Community

Shopping Cart Operations => Support => Topic started by: timlight10 on April 03, 2021, 10:54:09 AM

Title: CSV import with images hosted on Dropbox
Post by: timlight10 on April 03, 2021, 10:54:09 AM
Hello, AbanteCart is not loading images that are hosted on Dropbox when performing a CSV file import. The links for example are https://www.dropbox.com/s/rtxa0ex3fksjebh/3.Aeon_Blue.jpg?dl=1. Any advice?
Title: Re: CSV import with images hosted on Dropbox
Post by: timlight10 on April 07, 2021, 09:34:00 PM
Any ideas? This is what I see in the error log, but it's not very helpful...
2021-04-08 18:46:48 - Error: Unable to download file from https://www.dropbox.com/s/wcgcudl7izt9m5t/aeon_main_award745.jpg?raw=1
Title: Re: CSV import with images hosted on Dropbox
Post by: timlight10 on April 11, 2021, 03:33:45 PM
Was unable to resolve with Dropbox, instead downloaded all of the files, FTPed up to my server and using some Excel formula manipulations, re-directed the upload to my local server.
Title: Re: CSV import with images hosted on Dropbox
Post by: maxter on April 26, 2021, 06:54:28 AM
Is the image URL that id on dropbox has a publick URL? Can you view it in the browser without login to dropbox? AbanteCart import can load images only from publick URLs.
Title: Re: CSV import with images hosted on Dropbox
Post by: timlight10 on April 26, 2021, 08:08:07 AM
Yes and yes, go ahead and click the links and they will appear!
Title: Re: CSV import with images hosted on Dropbox
Post by: maxter on April 26, 2021, 08:21:33 AM
Very strange, could be something to do with URL itself or your server. I have done this before and it worked for me.
Title: Re: CSV import with images hosted on Dropbox
Post by: Basara on May 04, 2021, 02:43:02 AM
Hello, AbanteCart is not loading images that are hosted on Dropbox when performing a CSV file import. The links for example are https://www.dropbox.com/s/rtxa0ex3fksjebh/3.Aeon_Blue.jpg?dl=1. Any advice?

Please share the CSV file with at least one product
Title: Re: CSV import with images hosted on Dropbox
Post by: Basara on May 12, 2021, 01:26:19 AM
Hello.
Please try to apply changes from this commit (https://github.com/abantecart/abantecart-src/commit/96cfa52e3a75ca3b608b242c35925654e571d018) in 13.1 branch and import again.
Title: Re: CSV import with images hosted on Dropbox
Post by: timlight10 on January 04, 2022, 08:10:17 AM
I was able to resolve this by applying the patched files in your previous post and by changing line 664 of import_process.php from
Code: [Select]
$image_basename = basename($source); to
Code: [Select]
$image_basename = basename($source,"?dl=1");
Thanks for your help, this is a real time saver in getting products updated and loaded to my store.
Title: Re: CSV import with images hosted on Dropbox
Post by: Basara on January 04, 2022, 08:15:19 AM
Thank you, timlight10