4

I am building a woocommerce based site, in which I want to sell a certain excel file.

I've been struggling find a web storage site which will allow me to put a link to my digital product in Woocommerce, so after the client pays he will be able to download the file immediately by clicking the link.

So far I have tried dropbox, mega, Ondrive, and several more. In all cases one of the two next options occured: Either it took me to a page in the site and only then it allowed me to download the file, or it did downloaded the file, but in other name and without the file extension!

1
  • What about Amazon S3 service? It allows you to hotlink files.
    – Chloe
    Apr 24, 2016 at 17:58

3 Answers 3

1

One alternative that I know of is Google Drive. First of all upload the files and then click on the share button on top.

enter image description here

This will give you a link which is of the form

https://drive.google.com/open?id=FILE_ID

Make a note of the FILE_ID.

On your website, create the following link.

https://drive.google.com/uc?export=download&id=FILE_ID

where, FILE_ID is the ID that you got from the Google Drive.

This will result in a direct file download.

Caution: Be aware that once a file is downloaded, the FILE_ID will be public and anyone can download the file without your permission and without paying money. If you want a foolproof method, consider hosting the files on your servers itself.

1
  • This doesn't work for large files. I think the limit is 50MB. If it is over 50MB then it will redirect to a page warning that it is too large to scan for viruses.
    – Chloe
    Apr 24, 2016 at 17:58
1

This is not answering your question but it is an alternative to fixing your problem.

You can use the Easy Digital Downloadsplugin. You can use that to sell your excels sheets.

This plugin is free although add-ons cost extra.

1

Dropbox works, just make sure the copied link ends with ?dl=1 instead of ?dl=0.

For example:

https://www.dropbox.com/s/abcabc123123abc/My_Awesome_File.xlsx?dl=1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.