How does one decompress a compressed file (zip, bz2 etc), within Dropbox (without downloading to client first)? - dropbox

Say I have a compressed file (zip etc) stored in my dropbox account (in the cloud, not on my local device), is there a way to programmatically expand the file in my dropbox account, without downloading it locally first ?
I do not want to download the file first. That defeats the purpose, since i can just upload the decompressed files in the first face.
I've looked at various Dropbox api's, and while I can find a lot of information on how to put or remove files, I haven't found anything (yet) on how to decompress a file programmatically.

No, Dropbox doesn't have this functionality.

Related

Show content of a zip file in a browser, rather than downloading it

I have a log server, where users upload archives and view their content online when needed. Currently the server unzips files, right after receiving them. Unfortunately, my peers consumed all the drive space I had. I can free up a lot of space, if there's a way of storing ZIP archives, but feeding them to users as HTML page (same as default Apache's file browser).
I know there are solutions relying on JS, like:
http://gildas-lormeau.github.io/zip.js/demos/demo2.html
https://stuk.github.io/jszip/
or I can unzip them on demand at server side and provide link to a temporary folder. However, some time ago I've heard a browser can view an archive content if proper headers are sent from Apache/nginx. Apache's mod-deflate doesn't help much here and I can't find other docs - perhaps it's not possible after all?
Cheers.

Upload medium or larg file size in host (images,multimedia files,...) without ftp protocol

How can make a uploader file in vb6 to work easyly and can be uploade files into host.
For example (images or multimedia files or other format) and size > small size files for exampe > 500kb or 1 mb , 2 mb or upper sizes .
Please help me to can find any way to designed without ftp protocols.
I think it is possible to use of msxml refrences but i don't know how can designed it by msxml .
[thanks]
You could upload to a HTTP like dropbox. The downside of simple HTTP file transfer is that it is fairly easy for somebody to grab your credentials using a common tool like Fiddler. However that is also the case with FTP just a bit harder. The upside to uploading to dropbox is that you could have any file size (providing you have the space on your dropbox account).
I haven't tried using the dropbox upload api yet but you can read the documentation here, take a look at the PUT and POST methods: https://www.dropbox.com/developers/core/docs
If you just wanted to upload to dropbox and you have the dropbox client installed you could just save the file to the dropbox folder on your computer and it would auto upload.

Programmatically add meta data for MP4

I have a server from where a single consumer me download MP4 files. I would like to add the username to the meta-data of the file at the time the user clicks "download". Amazon does something like this for the MP3 files.
Now, a slight variation to this is how would I do the same thing if the files are on Amazon Cloudfront.
Thanks!
You would have to route your request through your web server.
Logged-in user clicks
Web server downloads the MP4 file from S3 to its file system.
Web server uses an MP4 editor to add the correct MP4 metadata to the file.
Web server serves the MP4 file back to the customer as a download.
S3 is dumb file storage, so you can't do any on-the-fly editing or processing. Any such work must occur on a machine with a CPU.
As such, the question you posed could not be accomplished in any meaningful way using CloudFront, since the traffic needs to route back through your server for post-processing anyway.

Where to save the uploaded files?

I am developing a web application to upload .mp3 files and need to play them. I successfully uploaded the files and saving them in C:/uploads folder. I understand that as it's a web application we need to save them in the Apache web server it self. But I am not sure, where to save them.
Thanks,
Serenity.
You can use content repositories to store uploaded data, I think this is common approach. For instance, take a look at the Apache JackRabbit CR, applying it you won't easy look for uploaded files on hard drive, but you will have web interface, and also some other tools available to connect to repository and show you files there etc.
As alternative to JackRabbit, you can try Alfresco CMS, they both implement JCR, other implementations are listed here (you will them at the bottom of that page).

How can I remotely upload files to Amazon S3?

I am looking for a way to transfer files from a server to Amazon S3 bucket, without first downloading the files to my computer. All of the files I plan to transfer can be accessed publicly (e.g. http://something.com/file.ext). Everything I tried only allows me to directly upload files from my Mac to S3.
P.S. Although I have access to windows, a Mac app that can do this would be great... or maybe a browser-based solution :)
You can check out this PHP class (and a net tuts tutorial on it), it works well, I've been using it for a while now. It includes bucket creation, deletion, adding files and more. You can easily add files remotely from another server, or from the same server you're running it on.