I run a small file server for my workgroup. People use SCP, programs like Cyberduck/FileZilla or mount via SSH to upload files.
I would like to add a 'web-interface' which can be used for:
file upload
view all files
adding comments to files
searching files and comments
It should be based on JAVA EE and running on Tomcat, because we do everything else in JAVA. There are many PHP file manager solutions like CKFinder. I am basically looking for a JAVA alternative with comments and search features.
Do you have any ideas?
Thanks and Cheers
You can use the document management system alfresco. It's based on java and can be run inside tomcat.
You can use Java Script's FileUpload Object for this
like.....
FileUpload object, FileUpload properties, accessKey, disabled, form, name, type, value, FileUpload methods - blur(), focus(), select(), handleEvent(), click() and event handlers - onblur, onchange and onfocus
Related
I am working on a web application based on Java/JSP and I need to include a web based file explorer that connects to an Amazon S3 bucket that can handle the basic file explorer tasks such as upload, delete, rename and navigation. Any suggestions would be appreciated.
have you tried simply creating a wrapper to wrap around s3cmd ? that would be the ultra lazy way to do it. since then all the protocol handling is done for you and all you have to do is feed/parse its input and output
S3cmd is extremely well documented and pretty simple to use.
Am using Apache MINA SSHD to build my own custom SFTP Server.
I want to limit the file system my user sees. I just want them to see the directory structure under /aa/bb/cc
I do not want them to be able to see or navigate any other folder.
And from the directories under /aa/bb/cc, a user will have read access to some directories and write access to only a selected few. How do I achive this ?
The FileSystemView has been introduced for that very purpose. If you're using version 0.14.0, the following will work:
sshServer.setFileSystemFactory(new VirtualFileSystemFactory(new File("admin").getAbsolutePath()));
I have also almost got a working example here. I just have to figure out how to set the home directory dynamically.
I'm writing a program that will be hosted on GAE that can upload and process local files. The program needs to process the file on the server side, and then return it to the client side. Previously I used JFileChooser for that purpose, but found out that it's not supported in GAE. I did some research and found FileUpload class, but it seems like it can't return the data to the client side. I could just let the user type the path of the file, but that would be just bad usability.
Any ideas are appreciated! Thanks.
GAE may not support JFileChooser directly, but it is apparently possible to embed applets.
Since that is the case:
A digitally signed and trusted applet can show a JFileChooser.
A sand-boxed applet deployed in a Plug-In 2 architecture JRE (e.g. Sun's 1.6.0_10+) can be launched using Java Web Start and use the services of the JNLP API. The JNLP API offers the FileContents object by way of the FileOpenService. Here is a small demo. of the file services of the API.
You can't upload files to appengine in the conventional way. There is no filesystem. You have to serialize them into the datastore.
I have my web application made using JSP, Servlets,Java and Tom cat running on server.I want to upload a tab delimited file from the local system to a local folder in that server so that my application can picks it up..Can anyone help me please...
Use the Apache Commons File Upload
Following are few examples : Example 1
Example 2
Take a look at commons-fileupload, which makes this pretty easy.
I have written and shared the code in the gits and blogged about in the subject of Upload a file using JSP
And underneath i am using the commons-fileupload
I'm developing a JSP application, and I want to be able to upload the contents of a directory to the server. So the user will select the directory he wants to upload, and somehow all its contents will be uploaded.
Can't be done with regular HTML/Javascript, you have to use either Java or Flash.
There is no support for this in HTML (only uploading of a single file) so there is nothing you can do in your JSP. If you want to do this in java you will have to have something client side, like a signed Applet or a jar that the user downloads and runs.
Looks like it's time for a Framework! Struts2 can handle this type of jobs well and is easy to start with. Here you can take a look at a File Upload sample.
As said, there is no way to do this in JavaScript/HTML.
If you do not want to use a Java Applet (they are clunky and your users may not have Java installed), you can let people upload a zip file and extract it on the server (there is support for this in the Java standard API). Both Windows and Mac OS allow the clients to zip a folder by right-clicking.