Beginner: upload of files

Hi all

I am a beginner

I have a question, so, if UserA upload a file to make accessible to all the world to see, where this file would reside or live?  It Uploader directly in our Web server and then pull it back by using the url?

Please advice

Thank you

When the file is stored, is generally not interesting for the app. There just need to know which web service to receive the data, and what web service will provide the link to the files.

See it this way:

a. the application will display the data from the file to a web service, a script server somewhere. He must know the url of the script.

b. the web service will store the data of the file somewhere. The app doesn't need to know where #T. The script has been programmed to put it on the system of own server files, or to have the DBMS store in a database, or maybe even use another api (external) to get stored on Google or another cloud.

c. If the application wants to retrieve this file as a data file, it must call a query to a web service that returns the data in the file. Only the script of web service should know how to do that (get from a storage cloud, since the database or the file system). If the application needs to display a list of files, it will make a request to a web service that returns a list of URLS (to be displayed in the application). If the user clicks on this link, the file is retrieved,

Thus, the application and the back-end are coupled losely: the application has no need to know where the files are stored, and the principal server has no need to know how they are presented by the clients.

Tags: PhoneGap

Similar Questions

  • Column of type blob MySQL impossible to upload a file?

    Hello

    IAM using jdeveloper 11.1.1.7

    IAM new to adf

    We use mysql database and glassfish server,.

    Using mysql iam impossible to upload the file in the database

    one you suggest it's urgent for me?

    Hello

    in the dough of class AmImpl code below

    ' Public Sub test (String document_type, String DocumentName, InputStream pFileData integer profileid) survey FileNotFoundException, IOException {}
        {
        BigDecimal blobId = null;
        PreparedStatement stmt = this.getDBTransaction () .createPreparedStatement ("SELECT last_insert_id ()", 1);
        try {}
        Conn connection (Connection) = stmt.getConnection ();
        stmt. Close();
        stmt = conn.prepareStatement ("insert into capt_docs (document_type, document_name, document_file, document_profileid) values(?,?,?,?)");
        InputStream isFile = new FileInputStream (file);
              stmt.setString(1,document_type);
        stmt.setString(2,document_name);
        stmt.setBinaryStream (4, isFile, (int) (file.length (()));
        stmt.setBlob (3, pFileData);
        stmt.setInt(4,profileid);
        stmt.executeUpdate ();
        Conn.Commit ();
        stmt. Close();
        pFileData.close ();
        stmt = conn.prepareStatement ("SELECT last_insert_id ()", 1);
        stmt. Execute();
        ResultSet rs = stmt.getResultSet ();
        If (rs! = null) {}
        RS. First();
        blobId = rs.getBigDecimal (1);
        }
        stmt. Close();
      
        } catch (SQLException e) {}
        e.printStackTrace ();
        } {Finally
        }
      
    }

    }

    and change the settings based on your requiremnt and call this method from your backing bean

    {} public void fileUpload (ActionEvent actionEvent)
        Add the code in the event here...
        BindingContext ctx = BindingContext.getCurrent ();
        DC DCDataControl = ctx.findDataControl("ClinaptAMDataControl"); Name of the application in datacontrolBinding.cpx module
        Class ApplicationModuleImplimentaion
        AppM ClinaptAMImpl = (ClinaptAMImpl) dc.getDataProvider ();
       
        try {}
            InputStream fileData is getInputStream (file);.
           String docname = file.getFilename ();
            RichSelectOneChoice documentType = (RichSelectOneChoice) getComponentById ("soc4");
            System.out.println ("Document Type" + documentType.getValue ());
            RichInputText profileid = (RichInputText) getComponentById ("it1");
            RicheTableau documenttable = (RichTable) getComponentById ('t1');
          
            It is app module method and flow data file entry
            appM.test (getDocumentTypeVar (), docname, fileData (Integer) profileid.getValue ());
            AdfFacesContext.getCurrentInstance () .addPartialTarget (documenttable);
        } catch (FileNotFoundException exception) e {}
            e.printStackTrace ();
        } catch (IOException e) {}
            e.printStackTrace ();
        }
          
    }
  • How can I upload a file to my iPad?

    How can I upload a file to my iPad?

    Hi jejune1,

    You can log in with your Adobe id and password www.acrobat.com.

    Go to the section of the file and then download the file.

    Kind regards

    Ajlan Huda.

  • Noob trying to upload a file to ftp

    Hello world.

    I am creating a form to transfer a file to an FTP server.  However, I keep running into errors, especially concerning the destination of the file.  I put the code below.

    Any help would be appreciated.

    Code:

    <! - upload the file - >
    < isDefined ("fileUpload") cfif >
    < cffile
    action = "upload".
    FileField = "fileUpload".
    destination = "" >
    < / cfif >
    < do enctype = "multipart/form-data" method = "post" >
    < input type = "file" name = "fileUpload" / > < br / >
    < input type = "submit" value = "Upload File" / >
    < / make >

    <!-get file name
    < cfset FileName = CFFILE. ServerFile >->

    <! - BEGIN REMOVE - DEBUG
    < cfoutput > #FileName # < / cfoutput >
    END REMOVE - DEBUG->

    <! - open a FTP connection - >
    < PCTCT
    connection = "MaConnexion."
    username = «»
    password = «»
    Server = "129.1.26.15".
    action = 'open '.
    stopOnError = "Yes" >

    <! - BEGIN REMOVE - DEBUG->
    < p > open connection was successful? #cfftp.succeeded # < cfoutput > < / cfoutput >
    <! - END REMOVE - DEBUG->

    <!--put the file-->
    < PCTCT
    connection = "MaConnexion."
    action = "putFile".
    transferMode = "binary".
    localFile = "F:\temp\#FileName#."
    fichierdistant = "129.1.26.15/users/mis405spr10/rsuciu/omfoto/upload/NEW_#FileName#" >

    <! - BEGIN REMOVE - DEBUG->
    < p > have download succeed? #cfftp.succeeded # < cfoutput > < / cfoutput >
    <! - END REMOVE - DEBUG->

    <! - close the connection - >
    < PCTCT
    connection = "MaConnexion."
    action = "close".
    stopOnError = "Yes" >

    <! - BEGIN REMOVE - DEBUG->
    < p > close connection succeeded? #cfftp.succeeded # < cfoutput > < / cfoutput >
    <! - END REMOVE - DEBUG->

    <!--delete the local file - >
    < cffile
    action = 'delete '.
    file = "C:\Inetpub\wwwroot\TEMP\#FileName#" >

    Instead of PCTCT, use cffile.  The details are in the cfml reference manual.

    If you do not have a manual Googling the name of the tag gets you quickly to the correct page.

  • Upload a file attachment name - name must be the same as the name of the file!

    Hello
    Im trying to upload a file to my custom page of the OPS, I need to read the file that iam trying to download and need to display this name. Currently its display as 'view '.
    and I also need to disable the clear button.

    I went through the doc jdev, forums and I checked with a few pages standard OPS and written the following code:

    DataObject dataobject = pageContext.getNamedDataObject("AttachData");
    String s7 = (String) dataobject.selectValue (null, "UPLOAD_FILE_NAME") ;//
    System.out.println ("S7" + S7);

    Up to this point, s7 prints correctly (i, e file never name im trying to download his displays not correctly).


    When I add the line below its giving error:

    BlobDomain blobdomain = (BlobDomain) fileUploadData.selectValue (null, s7);

    Can not find the variable "fileUploadData" class...


    I also tried the below one:
    OADataBoundValueViewObject = displayNameBoundValue
    new OADataBoundValueViewObject (uploadBean, "FileName");
    uploadBean.setAttributeValue (DOWNLOAD_FILE_NAME, displayNameBoundValue);

    Even after the import of all needed packages, always his mistake to launch:
    Can not find "uploadBean" class...


    can anyone help me in this.

    Thank you
    Mahesh

    Published by: user8996062 on August 23, 2010 15:55

    Mahesh

    Before setting the value of the bean, you will first need to find it. You can use the following code for this.

    import oracle.apps.fnd.framework.webui.beans.message.OAMessageFileUploadBean;
    
    OAMessageFileUploadBean uploadBean = (OAMessageFileUploadBean)webBean.findChildRecursive("Id of your upload Bean");
    OADataBoundValueViewObject displayNameBoundValue =
    new OADataBoundValueViewObject(uploadBean, "FileName");
    uploadBean.setAttributeValue(DOWNLOAD_FILE_NAME,displayNameBoundValue);
    

    I hope that helps!

    Thank you
    AJ

  • Multiple Upload of files via a SFTP server

    Hi team,

    I have a requirement where I need to create a screen allowing the user to download pdf files and there is a button to download next to the upload of a file that will be activated once a file is downloaded; at the click of button transfer we will show him in a set of tables containing documents downloaded but not inserted in the db for this I create a line in vo with details of file as file name and content type.


    I am able to do the same a click on Download button and the same server sftp, checked the size of the file is but I don't want to download one by one because there are chances that the user can roll back everything or it can close the browser or anyone, even that I have to establish a connection whenever a file is downloaded.


    What I did is I created a class with inputstream and string variables.

    Sample

    / public class MultipleFilesHolder implements Serializable {}

    public MultipleFilesHolder() {}

    Super();

    }

    private InputStream inputStream;

    private String fileName;

    private static final long serialVersionUID = 98599739738L;

    with the getter and setter

    Whenever I press a button download I create an object in MultipleFilesHolder for details.

    Now on the validate button, I call my sftp and upload all the files one by one.

    Problem is when I check in my server files are getting created with 0 bytes.

    Please share your comments/opinions so it is best to do this or have I missed somewhere.

    I don't want to use temporary location for files for interim use and transfer to the call of validation .


    My version of Jdev is 11.1.2.4.0.

    Thank you.

    Team,

    I am able to achieve this functionality so closing forum. Will share my solution as soon as possible.

  • Upload a file and preview on the product?

    I would like to add a button to download file on the site I'm developing for a client that allows the user to upload an image and then post it on the product, it will be printed on (just like vista print has when you create a business card or a poster, etc.) so that customers can get a glimpse of their images on products and approve before buying the product. Thanks a lot, need HELP URGENT!

    Please refer to the similar thread:

    https://forums.Adobe.com/thread/1877442

    Thank you

    Sanjit

  • How can I upload a file to my comment in a discussion?

    I would like to respond to a discussion in the forum. In the form of discussion, I find no option to attach a file (in this case a perl script). If I choose to just download a file (not part of a comment in the discussion of he), the area of the 'Community' must be filled, and all communities are grayed out in my case (even though I am logged in). So I have two questions: 1) is it possible to download a file as part of a comment and case: how? (2) why are all grayed out when I attempt to download a file?


    PS: when writing this issue, the Community field is filled in, but if I use the "pencil" icon in the upper right corner, all communities are grayed out.

    PS: The script is on the transfer of the data GPS of Aperture and Lightroom. Data for GPS added to images from Aperture (e.g. from the GPS tracks), importing opening plugin any data not GPS. I did a workaround solution to transfer the coordinates GPS of Apreture to Lightroom. The solution is a bit heavy, but it is safe and not to spoil anything. It does not all changes or the original images. It is possible, at any time, as long as you still have the available images in Aperture. In my case, I already did a lot of work in Lightroom and don't want to lose all changes or mess with the originals.

    Files such as JPEG, PNG, and GIF images can be downloaded directly to the response of forum using the camera button. Videos can be incorporated using a link to a site like YouTube and the video button on the forum answer. All other types of files must be uploaded to a service like Dropbox then a link added to the response of the forum.

    Benjamin

  • How to download or upload the file using vim sdk?

    Does vim sdk provides a api to upload or download files to/from the data store?

    VI client provides this functionlaity, so it must be ensured by vim sdk.

    Thank you

    Hello

    There is no API to download the files, RIP vsphere. You can use HTTP put and get, as suggested by William in the post above, to perform the upload/download operations, which are similar to the operations carried out by vSphere Client data store Navigator. You can also see examples of file HTTP which are delivered with the vSphere SDK package, which illustrates the use of HTTP put and get.

    I hope this helps you.

    Thank you

    Angela

  • Dreamweaver sites - Upload dependent files

    I recently upgraded to CS4 for its new and improved features. One thing that I loved about CS3, it is that when I used it to edit and download files on the fly without switching between DW and transmitted to upload a css file. One thing I can't understand is that in CS3, I was able to add an image tag, and then when I save the file, it would download the source code, as well as images in the annex. I see that CS4 is not that.

    This feature hidden or gone?

    Edit > Preferences > Site

    Is quick to put/Check checked In?

    http://help.Adobe.com/en_US/Dreamweaver/10.0_Using/WSc78c5058ca073340dcda9110b1f693f21-7ec ea.html

  • Upload of file outside APEX call

    Hello

    I would like to upload documents to the apex of mass flows_files schema. Initially, I thought that I could 'just' inserts records in the WWV_FLOW_FILE_OBJECTS table $, but now I think that it is not a good idea, because I don't know how to generate all the columns (primary key, for example.)

    Is there a legal way to do this? Call a web service or something? Each index is much appreciated.

    Tamas

    Tamas,
    as you say, it comes to unstructured data, but these documents come from a single directory?
    I mean, how to find a particular document in a folder of 3000?
    There must be a rule, a method for recovery of a particular document, by name, date modified, by the owner, you cannot browse 3000 documents every time, you can?

    If this new application takes care of the entire Organization document concerns, so you can create your own table that contains a column of type BLOB and enjoy support declarative BLOB of Apex for downloading files.

    Said that probably the best way to make a download of mass would be to put all these files in a folder that put you at the disposal of the DB using the command CREATE a DIRECTORY, then you treat files using a utility built on top of DBMS_LOB. LOADBLOBFROMFILE.

    You need a way to store the names of files from the beginning, because you can not browse the contents of the directory, you need to know in advance the name of the file to load, but I guess that you can create a table containing the names of the files and then you can browse the rows of this table.
    Clearly, this method makes sense if this is a one-time operation, if you need to repeat this process over time, then it may be desirable to engineer this process a bit more.

    Flavio

    ----
    http://oraclequirks.blogspot.com

  • 18 Firefox crashes when you press browse to upload a file?

    FF18 is installed, it crashes when you press the Browse button to transfer a file.

    Well after running Sfc/scannow, which took a few hours to run the question seems to now be resolved, and so my apologies for the reflections it was Firefox!

    See you soon,.
    John

  • 16.0.2 Firefox crashes when you press browse to upload a file

    Using XP Pro Firefox crashes whenever I press a browse button. I have to force close with the Task Manager. I tried to delete the keys of registry MRU such as suggested in a previous question closed, but that did not help.

    Try to delete the mimeTypes.rdf file in the Firefox profile folder to reset all the actions file.

    Create a new profile as a test to see if your profile is the source of the problems.

    See "create a profile":

    If the new profile works then you can transfer files from the old profile to the new profile, but make sure not to copy corrupted files.

    You can also try resetting Firefox:

  • Firefox crashes when uploading large files

    When downloading large files as a 4 GB of linux DVD image, firefox starts to accumulate the memory usage. After downloading the / 3GB, it takes about 4 GB of memory and then crashes because it can't possibly get any bigger. WHY would he do that? In previous versions of firefox, it created a .part file and stored all the data in there. But at the moment it stores EVERYTHING download in memory and then directly saves it in the file. No disk .part files.

    I found the culprit. The only addon installed: Firebug!

    This seems to be a bug that was introduced in a later version. I use this addon for about 2 years now and never had such problems. I'll contact the author of this addon.

  • How can I change the default folder to upload a file?

    Hello:

    I don't know if this question is compared to Windows or my e-mail provider (Cox).

    When I try to uplaod (attach) a file to my email, a "dialog box" Windows

    opens and allows me to select what subdirectory (folder) to download the

    file and what file to download.  When this dialog box opens, it always 'Defaults '.

    in the Documents folder under my user name: -.... Username\Documents.

    Above left, there are a few buttons in a vertical column that allow me to

    switch of subdirectories by simply clicking on them; for example, clicking on a button

    named Desktop, change my current directory in ------...------. Username\Desktop.

    Is there a way I can change the path of the "Default" directory as well as once

    I have gp to uplaod a file, it automatically comes up with ------...------. Username\Desktop ?

    Thank you

    DaleB

    Hi Dale Brandt,

    Please take a look a this thread similar here with a possible solution.

    I hope this helps!

Maybe you are looking for