CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 upload error

Print topic Send  topic

Author Message
Sarah
Posted: 02/16/2002, 9:38 PM

I am trying to incorporate the uploadphp into my site and I keep getting this error.

Warning: Unlink failed (Is a directory) in /home/morris/public_html/data/UploadResult.php on line 52

Warning: Unable to open 'C:\Documents and Settings\cupysmom\Desktop\Sarahsstuff\Sarah's Stuff\pics\18_18.jpg' for reading: No such file or directory in /home/morris/public_html/data/UploadResult.php on line 53
Database error: Invalid SQL: update items set location='' where document_number=
MySQL Error: 1064 (You have an error in your SQL syntax near '' at line 1)
Session halted.

I added this to the footer of my AdminRecords>
<FORM ENCTYPE="multipart/form-data" ACTION="UploadResult.php?document_number={document_number} METHOD=POST>
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="100000">
Or attach file: <INPUT NAME="myfile" TYPE="file">
<INPUT TYPE="submit" VALUE="Attach File">
</FORM>

and added this as an open event> $tpl->set_var("document_number", get_param("document_number"));

(I have a feild called document_number instead of item_id)
Anyone have any suggestions?
Nicole
Posted: 02/18/2002, 4:30 AM

Sarah,
the error Unlink failed is usually occurs when the path to file is incorrect or the file doesn't exist.
Try to print the path and check it.

The errors below are caused by first one.
Sarah
Posted: 02/18/2002, 11:17 AM

When I print out the path with echo "tmp file is " .$tmpfile and the path comes out as users/1/ . really dont even know what that means. that is one of the company id. do I need to make the path name the document number instead of company_id? I'm completely confused as to how this works.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.