Fixes weblocks file upload issue

Before this fix uploaded files created without extension. Now extension copies from post file name to new random file name.