flex how to save files to the default location in the FileReference download

Updated on technology 2024-02-28
6 answers
  1. Anonymous users2024-02-06

    The browse() method opens an operating system dialog that prompts the user to select a file to upload. The method allows the user to select a file; The method allows the user to select multiple files. After successfully calling the browse() method, call the method to upload one file at a time.

    The filereference and filereferencelist classes do not allow you to set a default file location for the dialog generated by browse() or download(). The default location displayed in the dialog box is the most recently browsed folder (if you can determine the location) or the desktop. These classes do not allow reads or writes to files that have already been transferred.

    The filereference and filereferencelist classes also do not provide methods for authentication. By requiring a server that requires authentication, you can use the Flash Player browser plug-in file, but the upload (on all devices) and the file (on standalone or external) will fail. Listening for the filereference event determines whether the operation completed successfully and handles the error.

  2. Anonymous users2024-02-05

    Briefly introduce the two methods.

    var bitmapdata : bitmapdata = new bitmapdata(, "**。jpg");

    backurl: The address of the backend server.

    var filenamearr:array='/');

    var decodename=filenamearr[;Truncate the file name.

    var url:string=backurl+pathfilename;

    var download_request:urlrequest=new urlrequest(encodeuri(,decodename);** file and add the default file name.

  3. Anonymous users2024-02-04

    The encoded variable format receives the data, depending on the value set for the dataformat property. Note that the default value for the dataformat property is text.

  4. Anonymous users2024-02-03

    Add the file tag to the html-template. flex calls the js browse file method. Get the full path to the file.

  5. Anonymous users2024-02-02

    filereference does not support the ability to get the path to the selected file. What function do you want to achieve, you can tell me, and I will help you solve it.

  6. Anonymous users2024-02-01

    flex uses filereference to browse, but you have to swim to the path, only Zheng Mowu shouts or there is file name, size and other information.

    air uses the file class, which is the path.

Related questions
3 answers2024-02-28

This style is not difficult to recognize.,I'll give you a little explanation.,The most troublesome thing about this software is the problem of file call.,At present, I'm making it difficult on this.,Because it's also a beginner.,There are examples to learn but it's just that the naming and reference of the file can't be done.。 >>>More

23 answers2024-02-28

1) is a system of ternary equations:

When x=-1, y=0;Substituting y=ax +bx+c, we get 0=a(-1) +b(-1)+c, that is, a-b+c=0. >>>More

11 answers2024-02-28

It's textbox, right? textbook?

double somedouble; >>>More

15 answers2024-02-28

According to the different heroes on both sides, the natural dispatch is also different, but the same 1Eye position No x dare not push the line = no chance to wander = no early advantage. >>>More

2 answers2024-02-28

There are many benefits to learning English, which can increase your diplomatic skills and provide better opportunities for future work. However, learning English is not a matter of three or two days, and it is important to master the method in the process of learning. Here are a few business English translation tips that I have shared with you that you can use as a reference for learning. >>>More