mathlearner
mathlearner

Reputation: 7629

Static Files in google app engine Java

i am building a project in which i have to retrieve text content of a file,i read this article https://developers.google.com/appengine/docs/java/gettingstarted/staticfiles .in this article i can store file in the war/ directory and access it.but it is publicly accessible any one can access this file my file contain some sensitive data where to store this file and how to access it?? please guideline!!

Upvotes: 1

Views: 3766

Answers (2)

quarks
quarks

Reputation: 35276

You need to designate static file as described here:

https://developers.google.com/appengine/docs/java/config/appconfig#Static_Files_and_Resource_Files

Upvotes: 3

Romin
Romin

Reputation: 8806

You can definitely store statis files and process them as required in your application. Please keep your files into a folder that is not directly accessible by others.

I suggest the following:

  1. Keep the files inside of /WEB-INF/myfiles or some folder like that inside of the /WEB-INF folder.
  2. Use the File APIs to read the content of the files.

Hope this helps.

Upvotes: 1

Related Questions