Re: PDF Writefile problem

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 62658
interpreted = N
texte = Hi Eric That seemed to fix things. I removed the check for an empty file and now it uploads. Thanks! Jason Jason Aus ACS/Digital Jam Webmaster/Database Administrator 218-346-8137 (office) 218-346-8235 (fax) jason.aus@arvig.com www.digitaljam.com ***Please update your address book with my NEW email address: jason.aus@arvig.com ----- Original Message ----- From: "Eric Miller" To: "WebDNA Talk" Sent: Tuesday, July 19, 2005 8:45 AM Subject: Re: PDF Writefile problem > If I remember correctly, I think I just took out the [hideif [value]=] > around the writefile and it started working for some odd reason. > > > > Eric Miller > WebDeveloper/Programmer > The GoTriCities Network > > > -----Original Message----- > From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of > Jason Aus > Sent: Monday, July 18, 2005 3:42 PM > To: WebDNA Talk > Subject: Re: PDF Writefile problem > > > Hello All, > Resurrecting an old issue here - has anyone found a fix for this? I am > experiencing the exact same symptoms - Any other file type uploads fine, > except PDF's. > > A new twist - the same code works ok in my Windows Dev Environment, but > fails on my OSX/Apache environment. > > Thanks, > Jason Aus > ACS/Digital Jam > Webmaster/Database Administrator > > ----- Original Message ----- > From: "Eric Miller" > To: "WebDNA Talk" > Sent: Monday, January 10, 2005 9:15 AM > Subject: Re: PDF Writefile problem > > >> Here is the code I am using to write the files. It works for Word, Excel, >> Zip, jpg, gif & text files, but not the PDF's: >> >> Page1 (Form Fields) >> [_document] is only the Name the file is to be written as. >> [_doctype] is the Type of document it is (Word, Excel, etc) >> [_documentfile] is the file upload field where the user selects the file >> they wish to upload. >> >> >> Page2 >> [formvariables] >> >> [showif [url][name][/url]^[url]"action"[/url]] >> [text]action=[value][/text][/showif] >> [showif [url][name][/url]^[url]"_idNumber"[/url]] >> [text]_idNumber=[value][/text][/showif] >> [showif [url][name][/url]^[url]"_document"[/url]] >> [text]_document=[value][/text][/showif] >> [showif [url][name][/url]^[url]"_doctype"[/url]] >> [text]_doctype=[value][/text][/showif] >> [showif [url][name][/url]^[url]"_docid"[/url]] >> [text]_docid=[value][/text][/showif] >> >> [!]||||||||||||||| WRITE FILES FOR DOCS -||||||||||||||| [/!] >> >> [showif [url][name][/url]^[url]"_documentfile"[/url]] >> [hideif [value]=] >> [writefile file=docs/[_document].[showif >> [_doctype]=JPG]jpg[/showif][showif [_doctype]=GIF]gif[/showif][showif >> [_doctype]=PDF]pdf[/showif][showif [_doctype]=TEXT]txt[/showif][showif >> [_doctype]=EXCEL]xls[/showif][showif [_doctype]=WORD]doc[/showif][showif >> [_doctype]=ZIP]zip[/showif]&secure=F][value][/writefile] >> >> [text]_documentfile=[_document].[showif >> [_doctype]=JPG]jpg[/showif][showif [_doctype]=GIF]gif[/showif][showif >> [_doctype]=PDF]pdf[/showif][showif [_doctype]=TEXT]txt[/showif][showif >> [_doctype]=EXCEL]xls[/showif][showif [_doctype]=WORD]doc[/showif][showif >> [_doctype]=ZIP]zip[/showif][/text] >> >> [/hideif] >> [showif [value]=] >> [text]_documentfile=[/text] >> [/showif] >> [/showif] >> >> I tried wrapping the [value] with [url][/url], but still nothing. It >> writes >> absolutely nothing into the docs folder when this is ran for PDF. Any >> other >> suggestions are greatly appreciated. >> >> >> >> [/formvariables]-----Original Message----- >> From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of >> John Hill >> Sent: Friday, January 07, 2005 5:08 PM >> To: WebDNA Talk >> Subject: Re: PDF Writefile problem >> >> >> Look in the file - I'll bet you have some square bracket stuff in the >> file >> that webdna is trying to interpret. Make sure you include the pdf as a >> raw >> file with no interpreting. >> >>>Has anyone had any problems trying to do a [WRITEFILE] with a PDF file. >> When >>>I try this, the browser "spins" for a moment but no file gets written. I >>>have successfully written other file types, but PDF just doesnt want to >>>cooperate. I have the PDF stored on my machine and am trying to write it >> via >>>a file upload on a form. Any ideas/suggestions would be greatly >> appreciated. >>> >>> >>>Eric Miller >>>Web Developer/Programmer >>>The GoTricities Network >>> >>> >>>------------------------------------------------------------- >>>This message is sent to you because you are subscribed to >>> the mailing list . >>>To unsubscribe, E-mail to: >>>To switch to the DIGEST mode, E-mail to >> >>>Web Archive of this list is at: http://webdna.smithmicro.com/ >> >> -- >> >> --------------------------------- >> John A. Hill >> Oak Hill Software >> Website Development/Consulting >> john@oakhillsoftware.com >> >> ------------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to >> >> Web Archive of this list is at: http://webdna.smithmicro.com/ >> >> >> ------------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to >> >> Web Archive of this list is at: http://webdna.smithmicro.com/ > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: PDF Writefile problem ( "Jason Aus" 2005)
  2. Re: PDF Writefile problem ( "Eric Miller" 2005)
  3. Re: PDF Writefile problem ( "Jason Aus" 2005)
  4. Re: PDF Writefile problem ( "Eric Miller" 2005)
  5. Re: PDF Writefile problem ( John Hill 2005)
  6. Re: PDF Writefile problem ( Daryl Mitchell 2005)
  7. PDF Writefile problem ( "Eric Miller" 2005)
  8. PDF writefile problem ( "Eric Miller" 2004)
Hi Eric That seemed to fix things. I removed the check for an empty file and now it uploads. Thanks! Jason Jason Aus ACS/Digital Jam Webmaster/Database Administrator 218-346-8137 (office) 218-346-8235 (fax) jason.aus@arvig.com www.digitaljam.com ***Please update your address book with my NEW email address: jason.aus@arvig.com ----- Original Message ----- From: "Eric Miller" To: "WebDNA Talk" Sent: Tuesday, July 19, 2005 8:45 AM Subject: Re: PDF Writefile problem > If I remember correctly, I think I just took out the [hideif [value]=] > around the writefile and it started working for some odd reason. > > > > Eric Miller > WebDeveloper/Programmer > The GoTriCities Network > > > -----Original Message----- > From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of > Jason Aus > Sent: Monday, July 18, 2005 3:42 PM > To: WebDNA Talk > Subject: Re: PDF Writefile problem > > > Hello All, > Resurrecting an old issue here - has anyone found a fix for this? I am > experiencing the exact same symptoms - Any other file type uploads fine, > except PDF's. > > A new twist - the same code works ok in my Windows Dev Environment, but > fails on my OSX/Apache environment. > > Thanks, > Jason Aus > ACS/Digital Jam > Webmaster/Database Administrator > > ----- Original Message ----- > From: "Eric Miller" > To: "WebDNA Talk" > Sent: Monday, January 10, 2005 9:15 AM > Subject: Re: PDF Writefile problem > > >> Here is the code I am using to write the files. It works for Word, Excel, >> Zip, jpg, gif & text files, but not the PDF's: >> >> Page1 (Form Fields) >> [_document] is only the Name the file is to be written as. >> [_doctype] is the Type of document it is (Word, Excel, etc) >> [_documentfile] is the file upload field where the user selects the file >> they wish to upload. >> >> >> Page2 >> [formvariables] >> >> [showif [url][name][/url]^[url]"action"[/url]] >> [text]action=[value][/text][/showif] >> [showif [url][name][/url]^[url]"_idNumber"[/url]] >> [text]_idNumber=[value][/text][/showif] >> [showif [url][name][/url]^[url]"_document"[/url]] >> [text]_document=[value][/text][/showif] >> [showif [url][name][/url]^[url]"_doctype"[/url]] >> [text]_doctype=[value][/text][/showif] >> [showif [url][name][/url]^[url]"_docid"[/url]] >> [text]_docid=[value][/text][/showif] >> >> [!]||||||||||||||| WRITE FILES FOR DOCS -||||||||||||||| [/!] >> >> [showif [url][name][/url]^[url]"_documentfile"[/url]] >> [hideif [value]=] >> [writefile file=docs/[_document].[showif >> [_doctype]=JPG]jpg[/showif][showif [_doctype]=GIF]gif[/showif][showif >> [_doctype]=PDF]pdf[/showif][showif [_doctype]=TEXT]txt[/showif][showif >> [_doctype]=EXCEL]xls[/showif][showif [_doctype]=WORD]doc[/showif][showif >> [_doctype]=ZIP]zip[/showif]&secure=F][value][/writefile] >> >> [text]_documentfile=[_document].[showif >> [_doctype]=JPG]jpg[/showif][showif [_doctype]=GIF]gif[/showif][showif >> [_doctype]=PDF]pdf[/showif][showif [_doctype]=TEXT]txt[/showif][showif >> [_doctype]=EXCEL]xls[/showif][showif [_doctype]=WORD]doc[/showif][showif >> [_doctype]=ZIP]zip[/showif][/text] >> >> [/hideif] >> [showif [value]=] >> [text]_documentfile=[/text] >> [/showif] >> [/showif] >> >> I tried wrapping the [value] with [url][/url], but still nothing. It >> writes >> absolutely nothing into the docs folder when this is ran for PDF. Any >> other >> suggestions are greatly appreciated. >> >> >> >> [/formvariables]-----Original Message----- >> From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of >> John Hill >> Sent: Friday, January 07, 2005 5:08 PM >> To: WebDNA Talk >> Subject: Re: PDF Writefile problem >> >> >> Look in the file - I'll bet you have some square bracket stuff in the >> file >> that webdna is trying to interpret. Make sure you include the pdf as a >> raw >> file with no interpreting. >> >>>Has anyone had any problems trying to do a [writefile] with a PDF file. >> When >>>I try this, the browser "spins" for a moment but no file gets written. I >>>have successfully written other file types, but PDF just doesnt want to >>>cooperate. I have the PDF stored on my machine and am trying to write it >> via >>>a file upload on a form. Any ideas/suggestions would be greatly >> appreciated. >>> >>> >>>Eric Miller >>>Web Developer/Programmer >>>The GoTricities Network >>> >>> >>>------------------------------------------------------------- >>>This message is sent to you because you are subscribed to >>> the mailing list . >>>To unsubscribe, E-mail to: >>>To switch to the DIGEST mode, E-mail to >> >>>Web Archive of this list is at: http://webdna.smithmicro.com/ >> >> -- >> >> --------------------------------- >> John A. Hill >> Oak Hill Software >> Website Development/Consulting >> john@oakhillsoftware.com >> >> ------------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to >> >> Web Archive of this list is at: http://webdna.smithmicro.com/ >> >> >> ------------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to >> >> Web Archive of this list is at: http://webdna.smithmicro.com/ > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ "Jason Aus"

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

includes and cart numbers (1997) We have Proof (1997) WebCat.acgi from /cgi-bin/? (1997) serial number dishing (1997) [random] only for 1-100??? (1997) How much is too much? I can never remember the answer. (2002) More on the email templates (1997) creator code (1997) Showif, Hideif reverse logic ? (1997) (1997) Hiding my Source Code with W* (2000) Forms Search Questions (1997) Re:PCS Customer submissions ? (1997) Search or delete (or date or time) has bugs ... (1998) RE: [WebDNA] ubuntu can't append db (2019) convert date and time (2005) mutiple word search in one field (1999) WARNING: MacOS The installer is broken... (2000) Multi-processor Mac info ... (1997) RE: Languages (1997)