Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7025687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:00:33+00:00 2026-05-28T00:00:33+00:00

I am new to web development. And currently, I am developing a web application

  • 0

I am new to web development. And currently, I am developing a web application using GWT. I use a servlet to upload a file. Then the file will be write to a directory in \war. But I think this is not safe, because I can get the file directly by typing some address in the browser. Could anyone tell me how to store files safely on the server? Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T00:00:34+00:00Added an answer on May 28, 2026 at 12:00 am

    Rather than storing the file unencrypted on the file system, you could choose to store the file outside of your execution environment.

    There are a number of options for this, such as storing the file in a database, and then only allow access if the correct credentials are provided.

    Alternatively, you could look at using a cloud based file storage solution such as Amazon’s S3, which scales well, and allows you to secure files and generate secure URLs to retrieve the files when required.

    Storing the file outside of your execution environment also has the advantage that you can scale up to multiple execution environments, and the files will be accessible across the nodes.

    If you really want or need to store the file on the file system, and don’t ever anticipate increasing the number of execution environments, then you could use a ServletFilter to intercept requests to access the files, and only serve them up if the correct credentials have been provided.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using ASP.Net Am New to website development Currently am developing a web pages, when
I'm in early development stage of developing a web application. Im currently reviewing as
I am new to web development. I am currently using a .js modal dialog
I am new to desktop application development and currently building a desktop application using
I'm new to web development, and I'm currently using ASP.net. I wonder what would
I am new Web App development using Flex Builder 3 and currently I am
I'm new at web development with .NET, and I'm currently studying a page where
I am new to web development, I have to create a web application in
Hi I'm starting a new web development project with my team using Hibernate and
I am new to the area of web development and currently interviewing companies, the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.