I am developing an app on my local machine (windows 10, zend server). I can upload an image ok (listenting to the events triggers onAfterImgUpload) but a broken image appears, despite the file existing in the upload directory (full path returned in json response).
When viewing the images in the upload directory, there is no windows thumbnail, and opening them in windows photo viewer says "...you don't have the correct permissions to access this file location". Right-clicking the image and viewing the properties shows that the windows user does not have the correct permissions to do anything with the file, which is why i suspect it is not loading back into the croppic frame once uploaded. I have edited the windows permissions for the upload destination folder for all users to have full control over the directory, which does mean that images can then be viewed in windows photo viewer, but as soon as i upload another image via croppic, the new image has the restricted permissions applied again and is not viewable.
Even though it is windows and chmod codes don't apply, the directory is created (if not exists) with 0777.
I am aware this is a file permission problem - my question is - how do i resolve it? What php settings can i alter to fix this behaviour, so that the file is uploaded with correct permissions?
I am developing an app on my local machine (windows 10, zend server). I can upload an image ok (listenting to the events triggers onAfterImgUpload) but a broken image appears, despite the file existing in the upload directory (full path returned in json response).
When viewing the images in the upload directory, there is no windows thumbnail, and opening them in windows photo viewer says "...you don't have the correct permissions to access this file location". Right-clicking the image and viewing the properties shows that the windows user does not have the correct permissions to do anything with the file, which is why i suspect it is not loading back into the croppic frame once uploaded. I have edited the windows permissions for the upload destination folder for all users to have full control over the directory, which does mean that images can then be viewed in windows photo viewer, but as soon as i upload another image via croppic, the new image has the restricted permissions applied again and is not viewable.
Even though it is windows and chmod codes don't apply, the directory is created (if not exists) with 0777.
I am aware this is a file permission problem - my question is - how do i resolve it? What php settings can i alter to fix this behaviour, so that the file is uploaded with correct permissions?