hereForLearing
hereForLearing

Reputation: 1288

Where to store web application uploaded files?

I'm developing a web application using Grails.

I'm wondering where should I store the uploaded files (pictures, pdf ...) ? in the application server? a remote ftp server? or where ?

Upvotes: 0

Views: 99

Answers (1)

Slawomir Jaranowski
Slawomir Jaranowski

Reputation: 8527

It depends

  • what you want to do next time with this files
  • do you want to allow to download those
  • how many clients and how big traffic to those files has your application
  • how many files foresee to have

The easiest way is the best, so you can start simply store files in local filesystem.

Good practics is to create dedicated calss/service for suporting file storage, when in the feature you want store files elsewhere you only have to change implementation in one place.

Upvotes: 1

Related Questions