Basic questions about uploading files in JSF -
i have never used uploading feature in jsf, have to. have couple of questions , "for dummies" series questions. so:
1) logged in users' pictures db or filesystem of server?
2) if server relative or fixed path or root url db/properties , relative part db too?
3) if db, how performance when using jpa2 + mysql? cons otherwise?
4) if using server, secure add new context images server.xml , use images address www.examble.com/imagesfolder/images.jpg? how avoid situation can see pictures?
5) best way handle uploading? using primefaces, purpose or else?
6) tutorial or examples how pro :)?
7) how avoid situation there might files same name? hashing names or?
8) if (really big if) decide share application 2 physical servers, problems paths pictures?
9) in case, have pictures, common , pictures "owned logged in users. how implement , why if know using primefaces, jpa2 , mysql , have unlimited space in server?
10) nice , hot summer everyone!!
sami
most of questions file once have uploaded, that's design matter , depend on software architect, team leader or in last case on yourself. there 2 answers server filesystem/database file saving:
to handle problems described in "7)" , "8)", should use file server , content management systems. add more benefits file storage, searching, indexing , more. here examples:
to implement file uploading using jsf (note: pro, follow pros ways):
- file upload using jsf 2 balusc (jsf expert)
- primefaces simple fileupload
give try these samples. if have problem in coding better ask new question.
edit: forgot of number 4, reminder. add new context, stated, , create filter catch requests new context , redirect default url.
more on issue:
Comments
Post a Comment