Log in or register to post comments
Last post
Upload of image in classic ASP - error deleting temp file
In ckfinder classic asp: When I upload an image I get an error about deleting the temp file. So then I have two images.

I think the error is due to file being in use and so can't be deleted.

Not a big problem because I have comments out the delete code that causes the error and I can then delete the temp file anyway. Just that I hate error messages and so do my customers.

Can you look at that when you get a chance?

Cheers,

Michael
Re: Upload of image in classic ASP - error deleting temp fil
What's the code that you have commented out?
Re: Upload of image in classic ASP - error deleting temp fil
alfonsoml wrote:What's the code that you have commented out?


ckfinder\core\connector\asp\Utils\FileSytem.asp lines 107 - 111:

'If (eNumber<>0) Then
' Err.raise vbObjectError + CKFINDER_CONNECTOR_ERROR_CUSTOM_ERROR, "Failed to Delete File", "(Error: " & eNumber & ", " & eDescription & ") File " & filename
' DeleteFile = False
' Exit function
'End if
Re: Upload of image in classic ASP - error deleting temp fil
I didn't have that problem in the my tests, so I would suggest you to use the new image.asp, leave the delete file code as is and try again.
It's better to find out if there's really an error what's the root instead of hiding it and leave a number of temp files lying around.
Re: Upload of image in classic ASP - error deleting temp fil
Sure, I'll give it a go after I put the new images.asp in place.

I agree but I thought it would be easier for me to just tell people to delete the extra file after uploading rather then people getting in touch to say there was a nasty error message.

Thanks for you help & patience.
Re: Upload of image in classic ASP - error deleting temp fil
Hi alfonsoml,

The re-sizing is working great now, thanks. The temp files are also being deleted. So I'm all good now on that front.

Thanks for your help, very much appreciated.

Cheers,

Michael
Re: Upload of image in classic ASP - error deleting temp fil
I'm glad that it worked fine
next version will include these fixes