Make the code and storage platform totally decoupled. Applications in general should not write to any file or create any new folders automatically inside the server where it is hosted. Always make your apps use storage services like Google Cloud Storage to securely store the user uploaded contents. The storage service should be scalable because the size of storage scales from trickle to torrent in no time for some companies.