• Image Uploading Issue [SOLVED]#

  • motoxer4533 Reply #1, 11 months, 2 weeks ago

    Reply
    Hello,

    I'm having a bit of a problem when trying to upload images through the manager. Here's what's happening.

      [list]
    • Browse to image and upload - say's it succeeded.
    • Look through the list of files in the folder (display fine here), find the image I just uploaded and click Insert.
    • Once I click Insert, the dialog boxes close, and I'm back to the Resource editing page, where I should see the image inside the Rich Text box. Instead, I see the "broken image" icon.
    [/list]

    I can RDP into this server and I can see the image go into the folder when I upload it. I can open it just fine from the server, but for some reason the manager will not show it. If I look in the "Files" tab, hovering over images will display the image, but not on ones uploaded from MODx; only ones directly copied to server.

    I thought it was a permissions issue, and maybe it is, but I created the "Everyone" user and gave it Full Control to the folder I was uploading to in order to test. I would think that any files placed in this folder would inherit this, but it didn't work.

    Does anyone have some insight?

    I'm using Revo v. 2.0.2-pl, Windows Server 2008 R2 Datacenter with IIS 7.5, PHP 5.3.3, MySQL 5.0.7. pdo_mysql is enabled and I've used FF, IE & Chrome. No opcode cachine. No errors in log.


  • motoxer4533 Reply #2, 11 months, 2 weeks ago

    Reply
    After some digging, we found out that PHP uses C:/Windows/Temp for its temp upload directory. In php.ini we changed it's temp directory to a new folder with correct permissions, so when the images are uploaded it inherits the new permissions.