XF 2.3 Unable to upload RAW image formats (.NEF, .DNG, etc.) anywhere in XF/XFMG/XFRM despite allowed extensions

CrazyChef

Active member
Licensed customer
I'm running XenForo 2.3.9 with XFMG 2.3.9 and XFRM 2.3.8.

I'm trying to allow users to upload RAW camera files directly (.NEF, .DNG, .RAW, etc.), but the uploads never complete.

The upload simply sits at 0% indefinitely whether I try uploading:

  • to XFMG
  • as a normal forum attachment
  • or into XFRM
Things I've already verified:

  • upload_max_filesize = 256M
  • post_max_size = 256M
  • max_execution_time = 300
  • memory_limit = 511M
  • Cloudflare proxy disabled for testing
  • tested both Imagick and GD
  • RAW extensions are definitely allowed
  • no server error logs generated
  • no XenForo ACP errors generated
Interesting detail:
If I rename the exact same RAW file to .zip, it uploads instantly and successfully. The actual RAW extensions do not.

I've tested:

  • .NEF
  • .DNG
  • .RAW
All behave the same way.

In browser developer tools, I only see a local blob object generated from attachment_manager-compiled.js, but I never actually see a normal upload request reach the server.

Has anyone here successfully configured XenForo/XFMG/XFRM to allow direct RAW camera file uploads? Is there some additional MIME handling or uploader configuration needed beyond simply allowing the extensions?
 
I'm running XenForo 2.3.9 with XFMG 2.3.9 and XFRM 2.3.8.

I'm trying to allow users to upload RAW camera files directly (.NEF, .DNG, .RAW, etc.), but the uploads never complete.

The upload simply sits at 0% indefinitely whether I try uploading:

  • to XFMG
  • as a normal forum attachment
  • or into XFRM
Things I've already verified:

  • upload_max_filesize = 256M
  • post_max_size = 256M
  • max_execution_time = 300
  • memory_limit = 511M
  • Cloudflare proxy disabled for testing
  • tested both Imagick and GD
  • RAW extensions are definitely allowed
  • no server error logs generated
  • no XenForo ACP errors generated
Interesting detail:
If I rename the exact same RAW file to .zip, it uploads instantly and successfully. The actual RAW extensions do not.

I've tested:

  • .NEF
  • .DNG
  • .RAW
All behave the same way.

In browser developer tools, I only see a local blob object generated from attachment_manager-compiled.js, but I never actually see a normal upload request reach the server.

Has anyone here successfully configured XenForo/XFMG/XFRM to allow direct RAW camera file uploads? Is there some additional MIME handling or uploader configuration needed beyond simply allowing the extensions?
Adding the extensions alone usually isn’t enough for RAW formats like .NEF or .DNG. XenForo still attempts to validate/process them as image uploads and most servers don’t properly support RAW camera formats through GD/ImageMagick.

If it’s failing across XF, XFMG and XFRM then it points more towards server-side image handling/MIME validation rather than the extension list itself. RAW files are a bit awkward because browsers don’t really support them natively either.

I’d check
  • whether ImageMagick actually supports those formats
  • PHP fileinfo/MIME detection
  • ModSecurity rules
  • any add-on upload validation
  • whether the files work when uploaded as generic attachments instead of images
XFRM/XFMG can also have their own attachment constraints separate from the core XF attachment settings which catches people out sometimes.
 
Back
Top Bottom