hi, this is what happens. a user can upload a picture during an editing process, this is supposed to be a preview. then the image gets saved to a temp directory that is written in the image array, with the attribute [tmp_name]. the dir in there is ...xampp/tmp/file.tmp...this process happens with a function "createpreview()".
now if the user decides everything is correct he presses a button to finally save all data in the db. now i am calling a function "uploadPicture" with the exact code like "createPreview". basically they do the same. they just resize the pic different an put it in different folders. if i execute one of these two functions without executing the other one, then its fine. but if i do both in a row (first uploading for preview then actually uploading it to static folders) i get a warning getimagesize(xampp/tmp(php25.tmp). no such file or directory. this -tmp-file is created in both processes, cause its the same picture. i think there is the problem.. is it possible that php can not write this particular file twice in xampp/tmp?? that would explain the "no such file" error.... Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
