Please help with creating container for downloads
Autor: Andre Feyaerts
Visitado 1507,
Followers 1,
Compartido 0
I am new. Could somebody please be so kind to explain me how to insert a PDF file in a webpage in such a way the users are able to download it? I mean downloading, not opening. Is this operation possible with any file? like pictures, sounds, ppt, zip files and others?
Publicado en
Yes it is,
Offcource if opend, you cab save it, but if you want immadiate download then it is best you create a (selfextracting) zip file of your pdf. Then download will start
http://testseiten.unofficialwsx5.de/direkt_aufruf/
Autor
It seems you are a profesional and probably you got the right solution.
I was looking into your forum and I think it is better than this official one, but I can't understand German.
Thanks anyway.
Andre
Do you have a sollution now ? Because if not i will try and explain better.
I see that my text / writing was not my best. But creating a link using a zipped archive will give you automaticly a direct prompt for download. A PDF file will be opend iF a pdf reader is installed on the pc of the user..
So the link for download is the same as opening. An d what your computer does depends on the file type.
And i'm not a professional, just a user ....
The forum is not mine, it's Zwoemti's ....
BR
A
I can send you the sample project. Which you can import into Website X5 and you look - it's all included trimmings. I only need an email address from you.
My email address is
info (at) unofficialwsx5.de
there you can reach me.
@Andre F.
There are also alternative solutions to your problem. Use cloud services as Box.com (there are many others) to upload your file(s) and then use the offered sharing options on your Wx5 website.
For example, a PDF file is uploaded on Box. Once there, use the Sharing -> Link -> Embed. Adjust the code to your preferences and paste it in a Wx5 html box.
Hope it helps.
Cristi M.
OR
If your web space .htaccess supports and has enabled Apache mod_headers.
you can put the following in the file .htaccess
The file comes only in the DOWNLOAD! Folder.
All the files are in there and ending pdf / jpg / gif always have to be downloaded.
<FilesMatch "\.(?i:pdf|jpg|gif)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
Autor
my email adress is ***
I am VERY gratefull for your kind offer to send me your example.
Thank you so much