Im currently looking to implement a document repository for a web application (i.e. a user opens a document and saves it directly on a server). I've done some research and found WebDAV that has support for this (www.webdav.org).
However, WebDAV seems to lack firefoxsupport unless you download and use a extention. I'm looking for a way to accomplish this without the need for a 3rd party extention
Questions:
How can this be accomplished with webDAV without a 3rd party extention?
Is there another lib/way to accomplish this?
John, thats right you can launch documents in the appropriate editor (eg Word, Excel) directly from IE but to do the same in FF or Chrome requires some sort of extension.
Note that with webdav your users can browse for documents on the server as if they are on a normal drive, and open them using normal tools such as windows explorer or the file open dialog.
I routinely assist customers implementing this with my webdav server library product - http://milton.io
In Spring Framework you can enable support for multipart upload and then just use the standard java form upload functionality from any web browser to upload the document to your web server.
Related
OK, here are some more details. I need to remove/replace Alfresco from a Java application, the content that Alfresco manages is some HTML and some PDFs. My team wants to move the content to a remote website that runs with Drupal.
So is there a supported way to have my Java application retrieve the content from alfresco and move it to Drupal? Thanks in advance.
Drupal 8 provides RESTful Web Services which you can use to retrieve data from the Drupal site into your Java application. A similar feature exists for Drupal 7 with the RESTful module.
You also have the Services module, available for both Drupal 8 and 7 and providing a different Web Service interface
It sounds like you are trying to permanently remove Alfresco from your solution. To do that, you'll need to export the HTML and PDFs out of the Alfresco repository and make those available to Drupal. As mitpatoliya suggests, there are multiple approaches to getting the files out of Alfresco, including FTP and WebDAV. You could also use OpenCMIS to write a little Java application that will grab the files out of Alfresco and write them somewhere.
It's not clear from your question whether or not your Alfresco objects have custom metadata. If they do, and Drupal needs to know about it, you'll need more than the binary files exported out of Alfresco. You'll also need property values from those objects. The advantage to using OpenCMIS to do the export is that you can use it to read the metadata stored about the files and then write that to a CSV or some other format for loading into Drupal.
Now that you have all of the files and potentially metadata copied out of Alfresco you need to import that into Drupal. But Drupal's model is completely different from Alfresco, so how you do that will depend very much on how your Drupal site was built. Your binary files might not go into Drupal at all but will instead be served up as static assets, for example. Or you might need to take some of that metadata you exported out of Alfresco and create Drupal nodes.
If you need to create those Drupal nodes programmatically and you have to use Java, you might want to look at Drupal's RESTful module and just use an HTTP client from your Java code to make calls against endpoints that create the nodes. But there are many ways to go about this.
If you only have some HTML and PDF files which are stored in alfresco and you do not want to pull any metadata then you can just get all your contents from alfresco via FTP or Webdev and then dump it to your Drupal site.
There are Alfresco Drupal connector available but It is not required in your case because you just want to migrate data one time right?
Im currently writing a web application, where a user should be able to select an folder and upload all of its content to an servlet.
The idea is, that a user can select a folder, the folder and its content will be sent due a post request to the servlet. The servlet takes them, parses the structure and saves the structure in a database. (Filenames , foldernames..etc) (Thats also why, i cannot pass the files directly to the ftp server).
Afterward the servlets connects to an FTP Server, where the files will be stored permanently.
The Web Application uses JavaEE (Apache Tomcat 7.0, Servlet 3.0 API)
Currently Im using JUpload to achieve this, but in fact I've read that it is highly advised against using Java Applets, because of security issues. Also JUpload is not intended to use with Servlet 3.0 API, but with a little hack it works.
A normal input file form is not sufficient for this need.
Now I'm wondering, because i didnt find any other solution, which can achieve this. I've heard about some Flash Solutions, but im not familiar with flash. And also Flash has some security issues, like Applets.
Is there any other solution to solve this ?
I have an existing Java web application with document and spreadsheet files in Microsoft Office format.
I want to provide Sharepoint-like edit online functionality to allow user to edit files in Word and Excel and save them to the server.
I try this with the edit link generated from Alfresco but it only works in IE.
So do I have to use some cross-browser library for ActiveXObject support?
Or is there any easy way to embed the document edit link from Alfresco into my web application?
And for the document to be accessible by the protocol:
Do I have to use Alfresco services to upload my documents?
Or can I embed Alfresco server or Alfresco's VTI Jetty server into my application to serve my documents?
EDIT
So there is not any cross-browser ActiveX
After read Alfresco's action.js, I find out that there is something called Sharepoint plugin.
I have no problem generating the edit link now
EDIT 2
Microsoft Office works fine with normal WebDAV server, so there is no need for embedding Alfresco in my web application
There should be no need for any special code within the browser. As Gagravarr said, the links should work fine when Office is installed on the client.
Although it can be done, most likely you do not want to embed an Alfresco repository (with or without Jetty) within your application and use its CMIS and/or RESTful HTTP interfaces to work on content. Embedding a repository means introducing various dependencies. I see no reasoning in your scenario.
I am trying to create a web application which will allow the user to upload a file. The file will be encrypted and transferred to a web service via SOAP. The web service will carry out simple operations such as 'storeFileToCloud(byte[])' and 'downloadFile(string)'.
So far, using Google App Engine, I have created the web services, however, I'm not sure how to encode the file using SOAP. I've also created the form for the user to upload his/her file, but I'm stuck on what to do after this. Any tips or guides will be extremely helpful.
The tools I'm using include Java, Google App Engine and Eclipse Indigo.
JAX-RPC uses xsd:base64Binary. See the JAX-RPC Spec, chapter 10. You could probably do worse than copying them. Be aware that the size of the data will expand by about 33%.
i have to upload large number of files to server, directly from my pc, using only web browser.
which is best way to achieve that?
do i need some java applet, or is it possible to achieve woth php/jquery?
will it be unsecure if i try with php script that works with ftp connection?
thank you in advance!
There's various ready-made plugins on doing file upload on jquery.
Doing this kind of uploading hacks is not an enjoyable experience, so people enjoy using ready-made solutions.
Here's few:
Ajax File Upload Plugin
Multiple File Upload Plugin
jQuery forms plugin this posts your files through an iframe to get the effect :
you can also try this
You can search more from jquery's plugin -site.
If your only web browser is mozilla firefox, then try fireftp addon plugin, it works similarly as normal FTP app.