|
Hi,
I'm a newbie here and I think my question would be better on the Website Hosting Forum but I note I can't post there until I have 15 posts so please forgive me for putting this here - it sort of fits as the site is a Joomla site running php.
I'm also relatively new into website hosting. I am trying to get a web-page running where users can download pdf files that have been zipped (to prevent large files of approx 90MB being rendered - yes I know that I can write a php script for this but my hosting service won't allow the script to run for long enough to complete). My problem is that the files download to a greater or lesser extent but don't open when downloading completes. I have the following code:
<td valign="top">
<form>
<input value="Download" onclick="window.location.href='http://www.mysite.com/pdf/filename.zip'" type="button" />
</form>
</td>
This is set up in table format to give button appearance which should trigger the user to select to open or save.
Interestingly the same file is pointed to on another page as follows. This time the file is right clicked and the user then chooses to 'save target as' / 'save link as' which works without any problem.
<a href="pdf/filename.pdf">
<img src="folder/pdf.png" width="30" height="30" />
</a>
Any ideas will be followed up and thanks for taking the time to read this.
__________________
Bytsy
If you can keep your head whilst all around are losing theirs you have clearly underestimated the seriousness of the situation :o)
|