• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Upload issue with new filetype

I've been trying to upload a file to my webserver and used the example from the File uploading class documentation. Works great for PNG, jpg etc., but I'm trying to upload .unity3d and .swf files and both don't work. I've checked the mimes.php and although there is a .swf mime type already included in vanilla CodeIgniter, I can't upload a SWF file.

Even with the Unity3d file, same here: "The filetype you are attempting to upload is not allowed."

From controller:
$config['allowed_types'] = 'jpg|unity3d|unity|png|swf';//unity3d|jpg|png
$config['max_size'] = 0; // to allow any size

From mimes.php
original entry: 'swf' => array('application/x-shockwave-flash'),

What I added:
'unity3d' => array('application/vnd.unity', 'application/unity3d', 'application/unity', 'application/octet-stream'),
(the array because of tearing out hairs because nothing worked)

As said, png and jpg work. Any hint what I do wrong?


Messages In This Thread
Upload issue with new filetype - by El Forum - 01-08-2012, 06:21 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.