Server Enviroment:
Windows 2003 SE w/SP1
IIS6 (running in IIS5 Isolation Mode)
PHP 5.1.5 (ISAPI)
MySQL 5.0.24
Helicon ISAPI_Rewrite Lite
MODx 0.9.2
Client Enviroment:
Internet Explorer 6 & FireFox 1.5
Windows XP w/SP2
Error Encountered:
Manager >Resources >Manage Files
Error:
Uploading layout.JPG to /assets/images/
Warning: filesize() [function.filesize]: stat failed for C:\WINDOWS\TEMP\php17.tmp in X:\Inetpub\wwwroot\[domain.tld]\www\manager\actions\dynamic\files.dynamic.action.php on line 78
File type: image/pjpeg, 0 B
Uploading of this kind of file isn’t allowed!
---------------
Directory listing for:/assets/images
New folder
To top level
Up one level
FilenameModifiedFile sizeOptions
index.html 17-11-05, 15:13:00 70 B
logo.png 21-04-05, 10:02:00 3.82 KB
Directories:0
Files:2
Data:3.89 KB
Directory writable? Yes.
Synopsis:
There does not seem to be a problem with all jpeg’s or all files, only jpeg’s that are generated using CTRL+PrintScreen+Saved using MS Paint as jpeg. I have no problems uploading other files. My ’temp’ directory is not configured as C:\Windows\Temp in my php.ini and I am unsure how MODx has determinied this to be the case.
Thoughts?
Is there any other information that I should add in order to receive some help on this?
Thanks
-
☆ A M B ☆
- 24,524 Posts
Possibly it’s case-sensitive, and has ".jpg" specified as allowable, but not ".JPG"?
You are exactly right about the extension being case sensitive...MS Paint always capitalizes the extension. Silly me thought it might be related to mime type or something. Thank you for pointing this out.
But, upon upload I still receive this error...
Uploading layout.jpg to /assets/images/
Warning: filesize() [function.filesize]: stat failed for C:\WINDOWS\TEMP\php1B.tmp in X:\Inetpub\wwwroot\[domain.tld]\www\manager\actions\dynamic\files.dynamic.action.php on line 78
File type: image/pjpeg, 0 B
File uploaded successfully!
--------------------------------------------------------------------------------
Directory listing for:/assets/images
New folder
To top level
Up one level
Filename Modified File size Options
index.html 17-11-05, 14:13:00 70 B
layout.jpg 29-10-06, 08:39:27 106.85 KB
Directories:0
Files:2
Data:106.92 KB
Directory writable? Yes.
Is it hardcoded to use C:\WINDOWS\TEMP in MODx with Windows installtions for uploads? I use a custom directory for both sessions and uploads, both of which are defined in my php.ini.
Again, thank you for assisting me.
-
MODX Staff
- 12,272 Posts
I’ve seen that same exact error report on IIS with PHP 5 although the uploads definitely seem to work.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
MODX Staff
- 1,535 Posts
It looks to me like the upload_dir path isn’t being picked up correctly in your php.ini - it’s PHP, not MODx, that is defaulting to the system temp path in the absence of the custom path.
The warning itself, I believe, is caused by a permissions problem on the directory.
Garry Nutting
Senior Developer
MODX, LLC
Email:
[email protected]
Twitter: @garryn
Web: modx.com