Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Uploading a pdf file
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

l2k man
New Member

United Kingdom
74 Posts

Posted - 13 September 2018 :  19:24:19  Show Profile  Reply with Quote
I couldn't find anything in the forum on this subject.
I have a website built on Snitz 3.4.03 with various mods. One of them allows an upload of a file into a topic. Not sure which one, as it was added years ago.
I recently had an issue that we couldn't upload a pdf file, getting Error, Invalid ID.
After some investigation I found the file had been generated from an MSWord document using Save As and selecting pdf.
However, when I created the pdf using the print function to a pdf printer (Bullzip) the file uploaded correctly.
It's not an issue once understood, but not obvious.
Comparing file sizes is interesting. The SaveAs is far larger than the Print to pdf file.

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 14 September 2018 :  20:54:02  Show Profile  Visit HuwR's Homepage  Reply with Quote
can't think of any reason that the upload would fail TBH, I have never had any issues with save as pdf in word, a pdf is a pdf regardless of what created it. Most upload code relies on the file extension to decide what a file is, since there is little else you can use unless you know the exact format of the files header information, so you could just rename any file to .pdf and it ought to upload it.

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

l2k man
New Member

United Kingdom
74 Posts

Posted - 15 September 2018 :  21:28:25  Show Profile  Reply with Quote
quote:
Originally posted by HuwR can't think of any reason that the upload would fail TBH, I have never had any issues with save as pdf in word, a pdf is a pdf regardless of what created it. Most upload code relies on the file extension to decide what a file is, since there is little else you can use unless you know the exact format of the files header information, so you could just rename any file to .pdf and it ought to upload it.


Nor could I but the SaveAs pdf is a much larger file
viz:
document.docx 37kb
document-saveas.pdf - 244kb
document-print.pdf - 70kb

It's not a problem as I just print to pdf, then upload.
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 17 September 2018 :  00:20:54  Show Profile  Reply with Quote
Reason for size disparity is that MS embeds all of their MS Office coding, etc. into the file header. Depending on which upload program you're using, some of them actually check file header locations to determine whether files are legitimate (or possibly infected with virus, etc.).
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.11 seconds. Powered By: Snitz Forums 2000 Version 3.4.07