Skip to content
English
  • There are no suggestions because the search field is empty.

Broken Images In Mobile App / Speed Screen

Search

Broken Images In Mobile App / Speed Screen

Problem:

When uploading pictures for the Mobile App or the Speed Screen, the image appears to be broken and not viewable! I get a 401 Unauthorized error!


Cause:

On Windows Server 2003, there exists a special user, IUSR_<server_name>, which is used to read and write files via IIS. This user needs to be granted permissions to the destination folder. Due to how file inheritance works, the temporary folder that files get deposited into while being uploaded also needs these permissions set.

Fix (2003 servers):

New alternative! 

Download and execute permission_fix_2003.bat. This is experimental.

Original steps: 

To repair images that have already been uploaded:

  1. Navigate to c:\clubspeedapps.
  2. Right click the assets folder.
  3. Click Properties.
  4. Click the Security tab.
  5. Click "Add".
  6. In the "Enter the object names to select" box, type "IUSR_" (without the quotes) and click Ok.
  7. A new user will have been added to the list. Grant it all permissions, and save the changes.

To repair all future images:

  1. Navigate to c:\windows.
  2. Right click the Temp folder. (See note below for potential exceptions.)
  3. Click Properties.
  4. Click the Security tab.
  5. Click "Add".
  6. In the "Enter the object names to select" box, type "IUSR_" (without the quotes) and click Ok.
  7. A new user will have been added to the list. Grant it all permissions, and save the changes.

Note: By default, the temporary folder for PHP uploads is c:\windows\temp on our servers. However, this can be changed in php.ini via the upload_tmp_dir variable. If you have difficulty with these steps, ensure that the temporary directory hasn't changed.

 

Fix (2008 servers):

 Download and execute permission_fix_2008.bat.

Alternatively, grant the "Users" user full permissions to c:\clubspeedapps\assets.

bat (519 Bytes) bat (525 Bytes)

Related Articles