added size limit (currently 4G) for uploaded resource files