Resource controller. Files uploading