I've changed my code to this, but I'm getting the following error after it.
//Upload all files into Year/Month folders
global $files_move;
foreach( $files_move as $key=>$val)
{
if($val[0]==$_FILES["file_Attachment"]["tmp_name"])
$files_move[$key][1] = "files/PackingSlips/".date("Y")."/".date("m")."/".$values["ID"];
}
$values["Attachment"] = $values["ID"];
return true
Technical information
Error type 2
Error description move_uploaded_file(C:\Inetpub\wwwroot\PSS/files/PackingSlips/2010/02/) [function.move-uploaded-file]: failed to open stream: No such file or directory
URL edmapps1.XXXXXXXXXXXXXXXX.com/pss/pss_packingslips_add.php?
Error file C:\Inetpub\wwwroot\PSS\include\phpfunctions.php
Error line 641
SQL query insert into pss_packingslips
(PO Number
, Job Number
, Vendor
, Date Received
, City
, Notes
, Attachment
, Email
, Email Address
, Entered By
, Date Entered
) values (9999, null, 'Memory Express', '2010-02-19 00:00:00', 'Edmonton', '', '', 0, '', 'cphillips', '2010-02-19 14:55:40')
Solution It seems that you type incorrect path to subfolder where files reside. The path should be relative to the folder for generated pages. Type upload/ in the Folder where files reside box on the "Edit as settings" dialog on the "Visual Editor" Tab.