Round trip editing of binary documents stored on a server - file

I'm looking to build some functionality for a content management system for the editing of files stored on the server.
I'd like to provide users the ability to easily download files locally to their computer, open the file for editing, and save it back to the server. The process should be as seamless as possible.
Here's the steps today:
Click the link to download the file (say a PSD) in a web browser
Save it to disk
Find the file, open it for editing in Photoshop
Make changes, save the file
Go back to the browser,navigate to the file that was downloaded.
Click "replace file"
Find the file, upload it back to the server.
Here's what I want:
Click the link to open the PSD file
File is downloaded, Photoshop launches
Make changes, save the file
File is uploaded back to server, replacing the original file
Those who have used Sharepoint know that this works (using WebDAV) but only with the Office applications (PPT, DOC, XLS). I'd like it to work with all file types.
This will take some kind of software to be installed locally - perhaps a separatly installed application with a mime type registered, a signed java applet, or a firefox extension.
This seems like a problem that should have been solved. Has anyone seen this done before?

Windows client OS has a WebDAV redirector and has had for a long time, so
a) you shouldnt need a client piece and b) it's not specific to Office files.
The fun bit is the server end, implementing a WebDAV server.
WebDAV isnt supported on client OSs like Vista (IIS5.1 has support, 6.0 doesnt), only on Servers (2K3, 2K8...)
There is goo/examples/frameworks (cant recall which from when I researched it) available for implementing a WebDAV server, but it requires a server OS [so I had to discount it as the host in my case could potentially have been Vista/7, not server/XP).

The site WebDAV Resources includes a link to at least one open-source server implementation. I haven't used this software, I'm just citing the reference.
It appears that Apache has deprecated or dropped support for server-side WebDAV since the Jakarta Slide project has been retired.

Related

Access files on website (http) similar to ftp

We have an issue with a FTP site that fails intermittently. Upon notification that a connection cannot be established we manually log into a website and upload our file. We have no idea why the FTP site fails and it is not under our control. This community has some good ideas so I am asking if a website (http) can be logged into programmatically and files can be uploaded to or downloaded from that website in a manner similar to ftp. No API available from this vendor.
You did not give specifics about your environment or how you wish to implement your uploads. There are many tools available on most platforms to programmatically upload files, so I'll just mention a few general tips.
There is a very useful Linux GNU shell utility, wget: https://www.gnu.org/software/wget/, that has been available for a very long time. This utility has a command line interface which can easily be accessed programmatically from scripts using exec or other shell commands, to upload files via HTTP and FTP.
It's not as common, but there is a corresponding utility, wput: http://wput.sourceforge.net/, that is used to upload files.
If you only have access to Windows computers, a similar functionality is available from the Windows PowerShell (it's built in). Here is an old SO post with examples of how to do it with PowerShell: How to script FTP upload and download?
Another Windows based utility is WINSCP: https://winscp.net/eng/docs/guide_automation.
In answer to your question, these utilities wget/wput, PowerShell, and WINSCP, could be used to programmatically upload and download files to your FTP site. You could write (or have written) a custom script that automatically retries in the event that you get failures from your flaky FTP site.

make a exe to be downloaded through website

We have a exe (executable) file link on our website which a user has to download.
BUt, in most of places exe downloading is blocked. IS there any other better way except sharing it as a zip file?
The corporate standard for deployment is the MSI file (Windows Installer - check the link for details on the major advantages).
I am not sure how a direct download of an MSI in the last versions of browsers will behave since every new browser version tends to add new problems, but if you deliver an MSI file you will at least provide a product better suited for corporate deployment (so far as you follow best MSI practice).

Clearcase corrupting checked out Project files when changing network connection

Is anyone aware of a known issue (and workaround) where it seems like Rational ClearCase will corrupt a Microsoft Project file if it is checked out and the network connection changes? I have a laptop that is docked and hardwired to local network most of the time, and I perform some work with the Project file, then I will undock the laptop to go to a meeting or home for the evening, and upon re-docking, the Project file can no longer be opened and appears corrupt.
The error message shown is "Project cannot open the file. -Check that the file name and path are correct. -Check that the file format is recognized by Project..."
There doesn't seem to be anything directly related to Microsoft Project Server regarding ClearCase on ibm.com.
I have seen issues with dynamic views, when the view server is on the network (and said network is abruptly cut).
If this is your case, I would recommend using snapshot views.
You can have similar issue with ClearTeam 8.x web views (since the latest versions support dynamic views)
Regarding snapshot views (meaning files directly on your hard drive), you only need to watch for concurrent processes that might still access your file when undocking. A program like procmon can help.

Download Resume Not Possible in Azure

I have created a Storage>Blob>Container and added a file to it using an Explorer Tool.The problem is that the file download cannot be resumed,once paused
The file needs to be downloaded from the starting.Is this feature not available on Azure
It must be a combination of BLOB storage and the software doing the downloading. I tested this by using Internet Explorer to pull down a public file in BLOB storage and paused it. When attempting to resume it simply restarted as #techno stated; however, when using Azure Management Studio I was able to pause and resume with no issues.
Also, when I used Chrome I could pause and resume download from the same file as used above, but not every time. Sometimes it would restart. The browsers are looking at the partially downloaded file in the temp folders they use and looking at the incoming data from the server to determine how to ask for the remaining portion of the file. If for whatever reason the specific restart point can't be located the browser will just ask for the full file again.
Interestingly enough, when pulling down mp3 files IE was happy to let me pause, but never restarted correctly (Chrome did), but when I pulled down a zip file IE wouldn't even enable the Pause button (again, Chrome did and it worked fine).
As #siva.k points out the Azure BLOB API (both REST and SDKs) support requesting block ranges so in theory the Storage system itself supports not only resume but partial retrievals of any type.

Icons from remote files

I have started coding an FTP client application (for fun). I’m trying to represent remotely hosted files with icons. For example, let’s say I’m browsing the root folder of an FTP server (/) and want to display the Backup.zip file with the icon association from that client operating system. On some systems, this may be the windows compression icon and other operating systems this may be WinZip or WinRAR icons.
I have the client browsing local files with the SHGetFileInfo() function. This works great with files that are local, however, this function requires the physical file in order to retrieve the associated icon. So, this will not work with remotely hosted files. I have found some samples of loading icons given a file extension, and this is really where the question comes in... What would be the best strategy to get icons associated to remote files?
Go to the registry every time and look up extension to icon associations
Create 1 byte files with each extension and use the SHGetFileInfo() function for remote files (using local 1 byte files as association for remote files)
Other strategies???
What would a professional software company creating an FTP client do?
Thank you for your time.
-Jessy Houle
I suggest that you don't go to the registry every time: go if you need to, but if you've already been for a given filetype then remember/cache that result (within your program) and reuse it.
Use the procedure here from a previous Stack Overflow question on the same idea and uses the registry instead of an actual file.
How can I get the filetype icon that Windows Explorer shows?

Resources