Allowing To Select Upload Directory in Webserver

I'm required to improve my upload webpage so that user are allowed to choose which folder in the webserver into which they can upload some files. Since I haven't been that long working with Java and JSP, I had no luck solving this problem.
Can anyone kindly give me some advice as to how to achieve this? Website with such feature will help too.

there is no easy solution.
You will have to create a browser for the upload file directory where the users are allowed to downlaod too, in that browser users select the path and you need to retrieve it to do the actual download.
Most web containers use it to allow you to upload things but i have seen a package for it yet,.

Similar Messages

  • How to allow image file uploading, but protect the directory from abuse?

    I have an upload facility that allows visitors to upload their personal image (aka avatar) to my client’s site. This required me to CHMOD the assets folder to 777 which leaves the folder wide open to abuse.
    Is there a way to allow the uploading of files but protect the directory from abuse?
    I could put the images in the database but I assume that would quickly drag down the performance of the (MySQL) database.
    Any ideas?!
    Thank you in advance,
    Glenn.

    This required me to CHMOD the assets folder to 777 which leaves the folder wide open to abuse.
    Only if the abuser can get an executable file of some sort into that folder.  If you are filtering the files during upload to select only image files then I think you are pretty safe.
    I could put the images in the database but I assume that would quickly drag down the performance of the (MySQL) database.
    Definitely - you would never want to store the images as blobs unless you had a compelling reason to do so.  It's much more forward thinking to just save the image filenames in the database, and link to them as needed.

  • How do I get my computer to "allow" a Java upload? It will not even accept the link from your support page.

    How do I get my computer to "allow" a Java upload? It will not even accept the link from your support page.

    Please post a screenshot that shows what you mean. Be careful not to include any private information.
    Start a reply to this message. Click the camera icon in the toolbar of the editing window and select the image file to upload it. You can also include text in the reply.

  • How to "select a Directory" from Browse button

    Hi all,
    I am new to Swing API.
    All I want is to create a TextField and a Browse button.
    User has to select a directory from Browse button and upon selection of the directory and clicking OK, the directory should be placed into TextField.
    Hope this is not new............
    Help me do this.....
    Thanks in advance
    Sreedhar

    Take a look at JFileChooser. You can build a JFileChooser instance that will allow the user to select DIRECTORIES_ONLY (hint, take a look at the constants), it should do the trick ... (even though it's pretty ugly alright)

  • Security implication of  'Allow Public File Upload' to Yes

    Hi
    I am concerned about setting 'Allow Public File Upload' to Yes. Per the help text "Select Yes to permit unauthenticated users to upload files in applications that provide file upload controls. Select No to prevent unauthenticated users from uploading files in applications that provide file upload control"
    That means anyone who has access to the URL can upload files of any type in to the application without any authentication.
    Is this true?
    Is this not a security risk in that case? Are there any alternatives which would allow 'authenticated' users to upload files via apex application.
    Thank you
    Kumar

    Hi
    Can you explain in detail? Sorry I am not an apex developer and as a DBA I was asked to set this setting in apex and since this affects all workspaces (and all apex applications) I was concerned about this.
    I think we can have a custom procedure that checks to see who is uploading. One such example is given here
    http://www.mandsconsulting.com/oracle-apex-tutorial-8-up-and-downloading-files-part-2-video-training
    Also another concern is this
    Allow Public File Upload [YES | NO] This applies only to applications that do not use any type of authentication, so that all users are anonymous. At first glance, file upload into the database seems relatively harmless, since the first threat that comes to mind is someone uploading a file with a virus, yet there is no way to execute a file inside the database that mitigates this risk . However, consider the possibility of someone uploading a bunch of large files. At the very least, this will be very resource intensive At some point, the tablespace used by the APEX_FILES schema will fill, which is essentially a denial-of-service attac

  • Need to select a directory name.

    I need a dialog that will allow me look through my computer and select a directory name only. The file name is automatically generated, I figured this part out.

    Thanks for your answers, but I already found how to use a "File Dialog Function" from looking at other postings. But I guess it's not working the way I am expecting.
    I attached a constant to the select mode input and set it to "existing dir" mode 3. Then attached a start path control to the start path.
    Now when the dialog opens to select a "directory", I can only select a file. The directory information is in the total file path but I really don't want to select on a file. I need to select a directory and have this information show up. I don't want to see a file name in the final selection.
    Any more information?

  • I changed my Apple ID email address yesterday and now my IPhone 4 and my Ipod 5 will not allow me to upload any apps as they both still show my old email address.  How do I change the email address on the devices???

    I changed my Apple ID email address yesterday and now my IPhone 4 and my IPod 5 will not allow me to upload any apps.  When it asks for my Apple Password it still shows my old email address.  How do I change the IPhone and IPod to recognize the new email address????

    Hello there, emsariel.
    The following Knowledge Base article offers up some great information in regards to the issue you are describing:
    iOS 7: If you're asked for the password to your previous Apple ID when signing out of iCloud
    http://support.apple.com/kb/ts5223
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • I'm looking for an app that will allow me to upload my contracts and forms to my iPad, fill in a customer's personal information, sign them, save them and email them.

    I'm looking for an app that will allow me to upload my contracts and forms to my iPad, fill in a customer's personal information, sign them, save them and email them.  I looked at easySign, Filemaker, FM Touch, Sign Docs, Zosh, Exzact, Mi-Co

    FormConnect (http://itunes.apple.com/us/app/formconnect/id432653695?mt=8&ls=1) can handle the filling out, signing, saving and emailing the contracts/forms but uploading the contract and the form is going to be a challenge because you’re dealing with paper documents that have to be scanned.  If you can convert the scanned documents into an OCR program, you might be able to copy and paste the contract without having to retype it but the form itself is probably going to have to be recreated.  Alternatively, you could use a document annotation program such as iAnnotate and mark up the contract with ink.

  • How do i create a website that allows customer to upload images and text?

    I need some help i have a friend who has asked me if i can create a website that allows them to upload their own images and text at their leisure.
    His company is in the car sales trade so they need to regularly be updating their stock, and this needs to be done by somebody with limited computer knowledge so ease of use is fairly important.
    I am using dreamweaver cs4 on a G5 Imac running Snow leopard 10.6.8, my skills are limited to creating uncomplicated websites but i am very keen to learn, i am aware of content management systems such as Druplal but have zero knowledge on how to use these.
    Any assistance would be greatly appreciated
    Andy Barrington
    www.andybarrington.com

    You can take a read here
    http://www.hotscripts.com/category/php/scripts-programs/classified-ads/autos/
    http://icloudcenter.com/auto-dealer-car-sales-script.htm
    Although putting together a form that would upload images and all the descriptions required seems like a fairly straghtforward project, depending on your current skill set.
    Gary

  • Restrict the user should not allow to select No Excise entry tab in MIGO

    Hi
    how to restrict the user should not allow to select No Excise entry tab in MIGO
    if the material Excisable user can bale to select the No Excise entry tab in MIGO . my requirement .... if the Pop come Please enter Excise Invoice number and Excise Invoice Date user should not change the No Excise how to restrict pls advise me
    @sakhi

    These are the options provided by SAP keeping in mind Indian Scenario. Sometimes, vendor forget to send excise invoice copy with the material, in such case, you can select 'Only Part I'.
    Even if you have maintain vendor excise details & material excise details (By mistake) in J1ID, system will throw an error message, excise invoice value is zero. In such case, we can select option 'No excise entry'.
    Your requirement can't be fulfilled in standard way. Even if you go for any Z- developement, you will lose the option.

  • How to add Check box to a static Drop down list (bases on a selection list) and allow mulity select in it?

    Dear All,
    I created a text field in my project (Light switch 201, C#), this text field has a static list which I filled manually. when I click in this text box I get a dropp down list which allow me to chose only one value from it.
    Now what I want to do is to add a check box in this drop down list and allow mulity selection from this list. My list looks as follow:
    Can anyone help me :) ? 
    Thanks all,
    Zayed

    Something like this:
    http://www.codeproject.com/Tips/452756/Add-checkbox-inside-combobox-in-Silverlight

  • How to get the path when i select a directory or a file in a JTree

    How to get the path when i select a directory or a file in a JTree

    import java.lang.*;
    import java.io.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import java.awt.HeadlessException;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.Iterator;
    * @author Frederic FOURGEOT
    * @version 1.0
    public class JTreeFolder extends JPanel {
    protected DefaultMutableTreeNode racine;
    JTree tree;
    protected JScrollPane scrollpane;
    final static int MAX_LEVEL = 1; // niveau max de descente "direct" dans l'arborescence
    * Sous-classe FSNode
    * @author Frederic FOURGEOT
    * @version 1.0
    private class FSNode extends DefaultMutableTreeNode {
    File file; // contient le fichier li� au noeud
    * Constructeur non visible
    private FSNode() {
    super();
    * Constructeur par initialisation
    * @param userObject Object
    FSNode(Object userObject) {
    super(userObject);
    * Constructeur par initialisation
    * @param userObject Object
    * @param newFile File
    FSNode(Object userObject, File newFile) {
    super(userObject);
    file = newFile;
    * Definit le fichier lie au noeud
    * @param newFile File
    public void setFile(File newFile) {
    file = newFile;
    * Renvoi le fichier lie au noeud
    * @return File
    public File getFile() {
    return file;
    public JTree getJTree(){
         return tree ;
    * Constructeur
    * @throws HeadlessException
    public JTreeFolder() throws HeadlessException {
    File[] drive;
    tree = new JTree();
    // cr�ation du noeud sup�rieur
    racine = new DefaultMutableTreeNode("Poste de travail");
    // cr�ation d'un noeud pour chaque lecteur
    drive = File.listRoots();
    for (int i = 0 ; i < drive.length ; i++) {
    FSNode node = new FSNode(drive, drive[i]);
    addFolder(drive[i], node); // on descend dans l'arborescence du lecteur jusqu'� MAX_LEVEL
    racine.add(node);
    // Gestion d'evenement sur JTree (on �coute les evenements TreeExpansion)
    tree.addTreeExpansionListener(new TreeExpansionListener() {
    public void treeExpanded(TreeExpansionEvent e) {
    // lorsqu'un noeud est ouvert
    // on descend dans l'arborescence du noeud jusqu'� MAX_LEVEL
    TreePath path = e.getPath();
    FSNode node = (FSNode)path.getLastPathComponent();
    addFolder(node);
    ((DefaultTreeModel)tree.getModel()).reload(node); // on recharche uniquement le noeud
    public void treeCollapsed(TreeExpansionEvent e) {
    // lorsqu'un noeud est referm�
    //RIEN
    // alimentation du JTree
    DefaultTreeModel model = new DefaultTreeModel(racine);
    tree.setModel(model);
         setLayout(null);
    // ajout du JTree au formulaire
    tree.setBounds(0, 0, 240, 290);
    scrollpane = new JScrollPane(tree);
         add(scrollpane);
         scrollpane.setBounds(0, 0, 240, 290);
    * Recuperation des sous-elements d'un repertoire
    * @param driveOrDir
    * @param node
    public void addFolder(File driveOrDir, DefaultMutableTreeNode node) {
    setCursor(new Cursor(3)); // WAIT_CURSOR est DEPRECATED
    addFolder(driveOrDir, node, 0);
    setCursor(new Cursor(0)); // DEFAULT_CURSOR est DEPRECATED
    * Recuperation des sous-elements d'un repertoire
    * (avec niveau pour r�cursivit� et arr�t sur MAX_LEVEL)
    * @param driveOrDir File
    * @param node DefaultMutableTreeNode
    * @param level int
    private void addFolder(File driveOrDir, DefaultMutableTreeNode node, int level) {
    File[] fileList;
    fileList = driveOrDir.listFiles();
    if (fileList != null) {
    sortFiles(fileList); // on tri les elements
    // on ne cherche pas plus loin que le niveau maximal d�finit
    if (level > MAX_LEVEL - 1) {return;}
    // pour chaque �l�ment
    try {
    for (int i = 0; i < fileList.length; i++) {
    // en fonction du type d'�l�ment
    if (fileList[i].isDirectory()) {
    // si c'est un r�pertoire on cr�� un nouveau noeud
    FSNode dir = new FSNode(fileList[i].getName(), fileList[i]);
    node.add(dir);
    // on recherche les �l�ments (r�cursivit�)
    addFolder(fileList[i], dir, ++level);
    if (fileList[i].isFile()) {
    // si c'est un fichier on ajoute l'�l�ment au noeud
    node.add(new FSNode(fileList[i].getName(), fileList[i]));
    catch (NullPointerException e) {
    // rien
    * Recuperation des sous-elements d'un noeud
    * @param node
    public void addFolder(FSNode node) {
    setCursor(new Cursor(3)); // WAIT_CURSOR est DEPRECATED
    for (int i = 0 ; i < node.getChildCount() ; i++) {
    addFolder(((FSNode)node.getChildAt(i)).getFile(), (FSNode)node.getChildAt(i));
    setCursor(new Cursor(0)); // DEFAULT_CURSOR est DEPRECATED
    * Tri une liste de fichier
    * @param listFile
    public void sortFiles(File[] listFile) {
    triRapide(listFile, 0, listFile.length - 1);
    * QuickSort : Partition
    * @param listFile
    * @param deb
    * @param fin
    * @return
    private int partition(File[] listFile, int deb, int fin) {
    int compt = deb;
    File pivot = listFile[deb];
    int i = deb - 1;
    int j = fin + 1;
    while (true) {
    do {
    j--;
    } while (listFile[j].getName().compareToIgnoreCase(pivot.getName()) > 0);
    do {
    i++;
    } while (listFile[i].getName().compareToIgnoreCase(pivot.getName()) < 0);
    if (i < j) {
    echanger(listFile, i, j);
    } else {
    return j;
    * Tri rapide : quick sort
    * @param listFile
    * @param deb
    * @param fin
    private void triRapide(File[] listFile, int deb, int fin) {
    if (deb < fin) {
    int positionPivot = partition(listFile, deb, fin);
    triRapide(listFile, deb, positionPivot);
    triRapide(listFile, positionPivot + 1, fin);
    * QuickSort : echanger
    * @param listFile
    * @param posa
    * @param posb
    private void echanger(File[] listFile, int posa, int posb) {
    File tmpFile = listFile[posa];
    listFile[posa] = listFile[posb];
    listFile[posb] = tmpFile;

  • Firefox 5.0.1 will not allow me to upload any files. I receive an error message, though I know the files are vaild.

    Firefox 5.0.1 for Mac OS 10.6.8 is not allowing me to upload attachments. I get a pink band with the message "Files with errors will not be uploaded". When I click on the View Error link, it tells me "This file couldn't be added because it appears to be empty (0 bytes). " These are valid jpeg files that I have attached many times before, so I know there is no problem with the file. Also, Firefox has recently given me an error message about restarting in 32-bit mode to accommodate a plug-in. I have ticked the '32-bit" option in the Get Info window of the Firefox application.

    I have been unable to drag and drop large files, even onto the Desktop, let alone onto my NAS - I get the dragged files freezing in the middle of the screen or I get the 'unable to copy / file in use' error.
    Talking to Apple Support, they had me set up a new User, and then within that new account, the trouble went away. This pointed to the StartUp items being run in the original troublesome account,
    I have deleted all of my 3rd Party programs and then installed them one by one until the problem came back, and in my case (Macbook Air 5,2 running 10.10.3 Yosemite) I found it was DropBox causing the conflict. I have DropBox running in the Menu Bar (top of screen) and disabling sync (bottom left corner) stopped the file copy problem. Try disabling DropBox sync is file copying is failing?

  • How to create a parameter to allow multiple selection

    Hi,
    I am developing report in Oracle EBusiness suite. I use concurrent program to develop the report. My question is how to create a parameter to allow multiple selection for such kind of report?
    thanks
    Lei

    I dont think, we have multiple selection in the parameters of Concurrent Program :).

  • Upload Directory Configuration Problem in jdev 10.1.3.2 adfbc

    I am configuring a file upload utiltity. By default my files are created in /tmp directory i.e on c:\tmp folder. I intend to change this behaviour as i want this to be uplaoded into a drive other than c:\
    When we define the upload directory i have specified d:\amitupload\ files are uplaoded properly. But the problem is downloading the same. Its giving me nullpointer exception.
    What am i doing wrong. I followed the SRDemo Steps for file upload/download
    regards
    Amit

    Frank can we have UPLOAD_DIR defined as d:\uploaddir for windows or /app/uploads for linux operating system
    I am doing this way this method is called on download button action.
    My problem i could resolve the issue as my uploaddoc method was executed on value change listener attached on the input file component. So when i clicked on download this uploaddoc method is fired which cannot find the file in the input file component so the error message as null pointer exception.
    I shifted the code to upload button action now its working fine.
    thanx
    public String onDownload() {
    FacesContext fctx = FacesContext.getCurrentInstance();
    ValueBinding vb = fctx.getApplication().createValueBinding("#{row.AddudFilePath}");
    Object documentName = vb.getValue(fctx);
    if(documentName !=null){
    File srcdoc = new File((String)documentName);
    if (srcdoc.exists()) {
    FileInputStream fis;
    byte[] b;
    HttpServletResponse response = (HttpServletResponse) fctx.getExternalContext().getResponse();
    // file should be downloaded without display
    response.setContentType("application/x-download");
    response.setHeader("Content-Disposition", "attachment; filename="+srcdoc.getName());
    response.setContentLength((new Long(srcdoc.length())).intValue());
    OutputStream out;
    try {
    out = response.getOutputStream();
    } catch (IOException e) {
    // TODO
    e.printStackTrace();
    // no error message shown to the user. Consider adding a Faces
    // Message
    return null;
    try {
    fis = new FileInputStream(srcdoc);
    System.out.println(fis);
    int n;
    while ((n = fis.available())> 0) {
    b = new byte[n];
    int result = fis.read(b);
    out.write(b, 0, b.length);
    if (result == -1) break;
    catch (IOException e)
    e.printStackTrace();
    return null;
    try {
    out.flush();
    out.close();
    } catch (IOException e) {
    // TODO
    fctx.responseComplete();
    return null;
    }

Maybe you are looking for

  • Why apple say get our free apps w includes iphoto?

    Iphoto imovie should be free apps acording with apple site.when i went ti app store to get them guess what 4.99€ ***?

  • Scanned document - OCR - editing

    (it is possible that i am overanalyzing this problem, but here's what's going on) I am trying to scan a 150+ page, double sided document. Trying to run OCR on it, and then make edit’s/revisions to this document. All of this while trying to maintain t

  • The left side of my ipod 4g screen is frozen i cant power off or unlock it

    the left part of the screen of my ipod 4g is frozen and i cant swipe left to right to power it of unlock it but i cant reset it bcuz i dont have enough space in my computer to download itunes

  • Issue installing N1SM:   lockhart

    Can anyone tell me what pkg I'm suppose to remove, I can not find any hints in the logs n1sm has created. Thanks, -David unOS-5.9-i386/SUNWmcosx/reloc/usr/share/webconsole/private/templates/sjsas/audit_jar.reg, 113 bytes, 1 tape blocks x SunOS-5.9-i3

  • XML read errors--failure to open dtd (DITA)

    Hi all, I've run out of ideas and places to look on this one, I hope someone can help. The specs: WinXP Pro, Frame 8.0p277. Built-in DITA. Not using DITA Open Toolkit. No major issues except for previously discussed conref problems which, many thanks