Alvaro Jimenez
|
| Posted: 07/13/2005, 12:47 PM |
|
I have a form where only update is allowed. The problem occurs when i try to upload a new file, i got the error "The file example.jpg especified in FileUpload1 was not found."
File Upload Required property is set to "Yes".
Checking the php code i found that the function UpdateRow() call the method Move() that come from the class clsFileUpload, a problem? I think yes because Move() checks if the file exists in Temporary folder, at that time the file was unlinked by codecharge when it was uploaded.
To solve the problem I had to insert a new line with a call to Upload() before the call to Move().
$this->FileUpload1->Upload($RowNumber);
$this->FileUpload1->Move();
There is other way?
Thanks
CCS 2.2.2.40, PHP with Templates, WinXP Pro
|