I want to know how can I do to upload any kind of files ? It's similar to the xforms-upload example, however it doesn't need to be able to open the uploaded file, just put it on the harddisk, that's it !
Do you have an idea to allow me to begin ? Thanks you ! ----------------------------------------------------- -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Hi Yan,
If you specify that the node bound to your upload control is of type xs:anyURI, the file will be stored on the server as temporary file. If you want to store it in a more permanent location, you just have to copy it to that location after it has been uploaded. Alex On 2/4/07, Wang Yan <[hidden email]> wrote: > I want to know how can I do to upload any kind of files ? It's similar to > the xforms-upload example, however it doesn't need to be able to open the > uploaded file, just put it on the harddisk, that's it ! > > Do you have an idea to allow me to begin ? > > Thanks you ! > > > > ----------------------------------------------------- > Romandie Annonces : http://annonces.romandie.com > Petites annonces 100% gratuites entre romands > ----------------------------------------------------- > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > -- Orbeon Forms - Web Forms for the Enterprise, Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Hi Alex, first of all, thank you to answer me so fastly.
Could you just tell me how to do exactly in order to copy the file on the permanent location ? (just a small example) Thanks. See you ! En réponse à Alessandro Vernet <[hidden email]> : Hi Yan, ----------------------------------------------------- -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Wang Yan
Yan,
It sound like you are looking at the old upload example. The new one doesn't allow you to open uploaded files: http://www.orbeon.com/ops/xforms-upload/ -Erik Wang Yan wrote: > I want to know how can I do to upload any kind of files ? It's similar > to the xforms-upload example, however it doesn't need to be able to open > the uploaded file, just put it on the harddisk, that's it ! > > Do you have an idea to allow me to begin ? > > Thanks you ! -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Wang Yan
Hi Yan,
You are welcome. And your question about the copying is a good one, as there is no processor that does this out of the box. You will have to write your own Java code that copies a file from one location to another. You can then invoke this code with the Java processor. http://www.orbeon.com/ops/doc/processors-java Alex On 2/5/07, Wang Yan <[hidden email]> wrote: > Hi Alex, first of all, thank you to answer me so fastly. > > Could you just tell me how to do exactly in order to copy the file on the permanent location ? (just a small example) > > Thanks. See you ! > > En réponse à Alessandro Vernet <[hidden email]> : > > > Hi Yan, > > If you specify that the node bound to your upload control is of type > xs:anyURI, the file will be stored on the server as temporary file. If > you want to store it in a more permanent location, you just have to > copy it to that location after it has been uploaded. > > Alex > > On 2/4/07, Wang Yan <[hidden email]> wrote: > > I want to know how can I do to upload any kind of files ? It's similar to > > the xforms-upload example, however it doesn't need to be able to open the > > uploaded file, just put it on the harddisk, that's it ! > > > > Do you have an idea to allow me to begin ? > > > > Thanks you ! > > > > > > > > ----------------------------------------------------- > > Romandie Annonces : http://annonces.romandie.com > > Petites annonces 100% gratuites entre romands > > ----------------------------------------------------- > > > > > > -- > > You receive this message as a subscriber of the [hidden email] > > mailing list. > > To unsubscribe: mailto:[hidden email] > > For general help: mailto:[hidden email]?subject=help > > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > > > > -- > Orbeon Forms - Web Forms for the Enterprise, Done the Right Way > http://www.orbeon.com/ > > > ________________________________ > message-footer.txt > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > > > ----------------------------------------------------- > Romandie Annonces : http://annonces.romandie.com > Petites annonces 100% gratuites entre romands > ----------------------------------------------------- > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > -- Orbeon Forms - Web Forms for the Enterprise, Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
We have an oxf:file-processor processor (which really should be just
called oxf:file, no?), which currently supports the delete operation. It should be very easy to add a "copy" operation. -Erik Alessandro Vernet wrote: > Hi Yan, > > You are welcome. And your question about the copying is a good one, as > there is no processor that does this out of the box. You will have to > write your own Java code that copies a file from one location to > another. You can then invoke this code with the Java processor. > > http://www.orbeon.com/ops/doc/processors-java > > Alex > > On 2/5/07, Wang Yan <[hidden email]> wrote: >> Hi Alex, first of all, thank you to answer me so fastly. >> >> Could you just tell me how to do exactly in order to copy the file on >> the permanent location ? (just a small example) >> >> Thanks. See you ! >> >> En réponse à Alessandro Vernet <[hidden email]> : >> >> >> Hi Yan, >> >> If you specify that the node bound to your upload control is of type >> xs:anyURI, the file will be stored on the server as temporary file. If >> you want to store it in a more permanent location, you just have to >> copy it to that location after it has been uploaded. >> >> Alex >> >> On 2/4/07, Wang Yan <[hidden email]> wrote: >> > I want to know how can I do to upload any kind of files ? It's >> similar to >> > the xforms-upload example, however it doesn't need to be able to >> open the >> > uploaded file, just put it on the harddisk, that's it ! >> > >> > Do you have an idea to allow me to begin ? >> > >> > Thanks you ! >> > >> > >> > >> > ----------------------------------------------------- >> > Romandie Annonces : http://annonces.romandie.com >> > Petites annonces 100% gratuites entre romands >> > ----------------------------------------------------- >> > >> > >> > -- >> > You receive this message as a subscriber of the [hidden email] >> > mailing list. >> > To unsubscribe: mailto:[hidden email] >> > For general help: mailto:[hidden email]?subject=help >> > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws >> > >> > >> >> >> -- >> Orbeon Forms - Web Forms for the Enterprise, Done the Right Way >> http://www.orbeon.com/ >> >> >> ________________________________ > >> message-footer.txt >> -- >> You receive this message as a subscriber of the >> [hidden email] mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws >> >> >> >> >> >> ----------------------------------------------------- >> Romandie Annonces : http://annonces.romandie.com >> Petites annonces 100% gratuites entre romands >> ----------------------------------------------------- >> >> >> -- >> You receive this message as a subscriber of the >> [hidden email] mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws >> >> > > > -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |