Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Uploading a pdf file

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
l2k man Posted - 13 September 2018 : 19:24:19
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.
3   L A T E S T    R E P L I E S    (Newest First)
Carefree Posted - 17 September 2018 : 00:20:54
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.).
l2k man Posted - 15 September 2018 : 21:28:25
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.
HuwR Posted - 14 September 2018 : 20:54:02
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.

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000 Version 3.4.07