The reason for my previous post about the “Anatomy of an Umbraco package” was borne out of the need to make the “Zip Upload” package work in Umbraco 4.5. As the comment by Dirk Seefeld points out, the problem was caused by missing references and it is simply enough to fix. However, I will not be able to post the updated package here as I am unable to post such a file on this blog.
However, the procedure is thus:
- Get the files posted by Dirk Seefeld and then open the solution in Visual Studio.
- When you build you’ll probably get errors but these are due to the missing references.
- Once you’ve added the missing dlls, copy across the new “Nibble.Umb.ZipUpload.dll” into the bin folder of your web site.
That should do the trick. Also, don’t forget to change the maxRequestLength property of the httpRuntime within <system.web> to the desired value. You might also need to tweak the max file site if you’re using IIS 7 (See this post) or it can be done by adding
<security> <requestFiltering> <requestLimits maxAllowedContentLength="104857600" /> </requestFiltering> </security>
within <system.webServer> .
Bear in mind that the web.config is expecting the value in kBytes while in IIS the value should be in bytes. Use the following link http://www.matisse.net/bitcalc/ to perfrom the conversions desired.