Can't open files generated by PHP app on windows -
i'm having problem when try open files generated cms on windows machine. has upload function saves file on given location (it on user folder, i'm supposed have write , read permissions).
all can see in folder generic thumbnail, ones generated windows each image type, pngs , jpegs in case. tried change de image permissions , set current computer user doesn't work. , i'm unable move these files location (upload them server via ftp).
i wonder if there way change behavior.
one thing noticed if copy , paste files, can see contents normally. know can each of them , rename, there dozens of images in folder... don't wanna same thing everytime upload new image.
update
this happening images moved (i'm using php's move_uploaded_file function, btw), not ones generated (croped, resized , on).
you have error in php file preventing image being displayed correctly.
what in order detect problem comment out header()
calls in php file responsible displaying image , see if there output other image data.
inspect whole output, takes character break everything, check if there no blank lines @ top or bottom of output. , in case have error log, consult that, trace problem quickly.
when have problem, it's notice or warning showing during process of image generation, , if haven't disabled errors being output screen, notice text considered part of image data makes browser unable interpret image.
if you'd can take closely need see doing in php file able tell sure.
Comments
Post a Comment