Forum

Thread tagged as: Problem, Runway, Shop
Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, that's interesting. It's being set as Content-Type: text/html; charset=utf-8

Yeh, weird. It downloads it as Song.html, so that would be the cause of that

Drew McLellan

Drew McLellan 2638 points
Perch Support

I don't understand why that would be happening, I'm afraid.

I tried solving this problem by uploading only ZIP files as product files and editing my deliver page routing to:

shop/purchased-files/deliver/[i:file].zip

My files_list template to

<p><a download href="/shop/purchased-files/deliver/<perch:shop id="fileID" />.zip">Download</a></p>

But now if I try downloading the file (e.g 6.zip) it downloads it as a zip but the zip file seems to be corrupted after download. Instead of unzipping it just creates a new archive 6.zip.cpgz. I checked the secure bucket folder where the files are being uploaded, and the zip file is OK there so it must get corrupted after the download request.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok. I'm not really sure what to suggest you do.