8 Replies Latest reply on Mar 16, 2004 12:17 PM by julien1

    Uploading directory

    g00se

      It seems that the html module has no way of uploading an entire directory of files, which i guess is unsurprising since the upload functionality is provided by a web form.

      I'd be interested in as many suggestions as possible as to how to do this, possibly even from a standalone Java app.

        • 1. Re: Uploading directory
          paginaweb

          I don't think you can do that with an usual upload form. Not even some usual java script can't do that...

          PaginaWeb
          http://www.paginaweb.ro

          • 2. Re: Uploading directory

            yes that would be cool someone works on it.

            • 3. Re: Uploading directory
              g00se

               

              yes that would be cool someone works on it

              OK. I'll take it that this can't be done yet cooper.

              The only way i can think that this may be done in the current context (i.e. a web page) is to use a signed applet, which is a bit of a pain.

              It's almost more appealing to make it happen from a standalone app, but i'm still very much a newb in this area. Would it be possible to point me in the direction of connecting to the required component(s)? I tried a bit of JNDI code from an app, but wasn't allowed to connect. Maybe an authentication thing..?

              • 4. Re: Uploading directory
                fozzy

                How about the ability to upload a zip archive? This would allow the existing form to work, and there would just need to be an action after uploading to unzip in the targeted directory.

                • 5. Re: Uploading directory
                  g00se

                  Uploading a zip archive would not be of any use. The file system is not used - a database is - so there'd be no way of unzipping it

                  • 6. Re: Uploading directory

                    you are wrong, I did it. just use a ZipInputStream with the content in memory.

                    • 7. Re: Uploading directory
                      g00se

                      OK but that's suggesting a different approach is it not? i.e. rewriting the module so that you can get programmatic access to the archive inside the module? Is that what you mean?

                      • 8. Re: Uploading directory

                        when someone upload an archive, it is dezipped and each entry is inserted in the database.

                        when someone need to backup, he selects entries and can download the generated archive