Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Possible to upload zip files to Episerver?

Vote:
0

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:
0

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:
0

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:
0

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.