November Happy Hour will be moved to Thursday December 5th.

Possible to upload zip files to Episerver?

Vote:
 

Is it possible to upload media files of type .zip in episerver?
If yes, how should the media descriptor then look?

I tried to do the following, but upload fails in the editor:

[ContentType]
[MediaDescriptor(ExtensionString = "zip")]
public class ZipFile : MediaData
{

}



#150909
Jul 01, 2016 14:46
Vote:
 

Try with a small zip to check that it's not the MaxRequestLength setting that messes up...

Normally you want to add a guid to the above as well...

#150910
Edited, Jul 01, 2016 15:04
Vote:
 

I found that by removing the file extension it was possible, so I guess that's some solution, although it's not a very logical one...

[ContentType]
    public class GenericFile : MediaData
    {
    }



#150915
Jul 01, 2016 15:40
Vote:
 

Hmm strange. Works well with the extensionstring with "zip" for me in a clean CMS 9 solution.

#150916
Jul 01, 2016 15:43
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.