Fixed uploading with group permissions.