How to upload a torrent file programmatically - file-upload

We have a client with an upload site we built (using Ruby/RoR) and he wants to add the ability to upload files from a torrent link.
Right now you can upload files from a PC or URL.. what is the best way to programmatically upload a file from a torrent link?
It seems that we would need to first upload the torrent in a tmp directory, then extract the file.. and move that file to the uploaded directory..
I appreciate input from anyone with experience in this (in any programming lang.)
Feature:
In order to upload a file from a torrent link
As a registered user of the site
I want to be able to paste the URL of a torrent file
Then have that file uploaded to the website, not the torrent file itself.

Given a torrent file or magnet link, it's possible to obtain the file list for the torrent. The uploader could then specify which files in the torrent to upload. The server side can download the specified files in the torrent using bittorrent.
A link to a torrent file is as good as the torrent file itself, assuming the server can fetch from that address.

Related

open pdf file through URL using uid

I work with alfresco 4.2
I want to get an image from alfresco through URL using uid
I can get the result through this link
http://localhost:8080/alfresco/service/api/node/content/workspace/SpacesStore/98996554-212 f-4846-876a-89b40999901a/test.jpg
my problem is to do the same thing but for a pdf file
with chrome I can not open the file
and firefox the file is opened in binary format
is there a way to open a pdf file through URL using the uid of alfresco file
I'd try using the download servlet. I believe the url you are using is not setting the mimetype headers correctly. This url should do the trick:
/alfresco/download/direct/workspace/SpacesStore/0000-0000-0000-0000/myfile.pdf
Possible reason could be mimetype of your pdf file is not correctly set. Normally browsers have addons avilable out of box which enable them to read pdf file correctly.
https://helpx.adobe.com/acrobat/using/display-pdf-in-browser.html
Those appliation are associated with perticular file types so whenever it detects that file type browser invoke that application to deal with it. So you can make sure your file's extension and mimetype are correct.
One more thing you can try is download that file and try to open it directly in browser.
Also, there are chances file may be corrupt. Are you able to see prview of pdf in alfresco?

Downloading file from S3 using magnet link

S3 supports file distribution via BitTorrent protocol. If I download .torrent file adding ?torrent to the link, I will be able to download file using uTorrent, for example. But I can't download the same file using magnet link.
I'm creating magnet link as described in this topic Given a .torrent file how do I generate a magnet link in python?. I'm trying to download the file as magnet:?xt=urn:btih:hash and with specified tracker magnet:?xt=urn:btih:hash&tr=http%3A%2F%2Ftracker.amazonaws.com%3A6969%2Fannounce. In both cases it didn't work in different torrent clients.
Is it possible to download a file from S3 using magnet link ?

File upload with user access for Joomla 1.5

We want to make it possible for clients to download and upload files from our website. They must be able to see only the file they uploaded. We would also like to have files for download but select the users allowed to download them. So each client has their own front end where they see what they can download or they can upload their own Files.
My question is:
Is there a component for Joomla 1.5 available?
Our website runs on Joomla! 1.5.
Any help would be appreciated
You can use this componet for the file downloads and uploads via the frontend of the site
http://www.jdownloads.com/
You will then need a file tree that shows the files within that folder, however I'm not quite sure users can only see the file they have uploaded themselves.

Upload multiple files to FTP Server from iPhone

For a new project I need to upload some html and jpeg files from iPhone to a FTP Server.
I examined Apples SimpleFTPSample and managed to upload a file.
But what is the correct way to upload more than one file? Do I have to repeat the whole process with creating input- and output streams with username and password for each file or is there a simpler way?
Thank you for any hint!

Joomla 1.6 Upload file field in article manager

I wanted to add pdf file in my articles. I have added a custom form field with type="file" in the article manager by hacking the xml and artical.php file in administrator/component/com_content directory.
But I am not able to save the uploaded files on server. What causes this?
Also I used the field type="Media" but it does not display pdf files?
I had a requirement a while back where with every articles they wanted to be able to attach files for download. The trouble was that the end user had to be able to do this and they were not very tech savvy. I used this Joomla attachment extension and it has worked like a charm. I would recommend it.
In your case I would check the directory where the files are being uploaded, see if it has permissions that would allow files to be uploaded. Can you upload images fine and attach them in an article?
Update
This attachment does not work with Joomla 1.6+, the developers do have a plugin that is in Release Candidate stage that you can use.