java - Where to upload files in Tomcat? -
i have web application developed using servlet , jsp, hosting in daily razor privat tomcat hosting soon.
but, have problem. have form users can upload files server, files images , pdf's. now, not sure in place should save these files in server. have seen lot of stackoverflow answers telling user use path "c:/upload/.." real product, not gonna work.
i contacted hosting company matter , said give ftp logging details once purchased system, no word upload files.
i thought uploading amazon s3, have create folders "dynamically" each user , subfolders uploaded content, therefor not sure s3. apart that, believe s3 drain wallet.
any advice upload location in tomcat or alternate appreciated.
but, have problem. have form users can upload files server, files images , pdf's. now, not sure in place should save these files in server.
if you're talking long-term storage there's no correct answer here. you'd need find place on server tomcat user has permissions write , configure application put them there.
i contacted hosting company matter , said give ftp logging details once purchased system, no word upload files.
once have ftp details, should able connect server , @ file system. presumably allow see path application deployed. there, it's matter of picking location you'd want save files.
i'm not familiar hosting provider, can't same more.
i thought uploading amazon s3, have create folders "dynamically" each user , subfolders uploaded content, therefor not sure s3. apart that, believe s3 drain wallet.
this can option, depending on needs. price evaluate. demand , bandwidth on hosting environment others. if have high demand on these resources, putting them on aws take load of server , not eat bandwidth allocation hosting provider.
you store uploads in database. i'm not fan of this, people , hear works fine them.
Comments
Post a Comment