My project I am currently working on will allow users to upload files to an apache FTP server and then a link will be generated for them to view the file.
Does anyone have code that works for them that they could share? Thanks
You can have a look to apple project SimpleFTPSample
you can find a complete project with code ...
https://developer.apple.com/library/ios/samplecode/SimpleFTPSample/Introduction/Intro.html
Related
I am trying to get my UWP app to send a small text file to my ftp server but all the code snippets I have looked at don`t seem to work with UWP apps.
Here is the code I have tried using from the following link :
upload file to ftp site using vb.net
I am using Visual studio 2015 community and it doesn`t recognise the FTPWebRequest method.
I have also looked at the BackgroundTransfer sample from the following link :
https://github.com/Microsoft/Windows-universal-samples
But when I run it and enter my FTP server address in the form
ftp://IPAddress/TestFolder/
and attach a simple text file it gives me an error at the line :
Dim upload As UploadOperation = uploader.CreateUpload(uri, file)
as The parameter is incorrect.
I can`t seem to find anything else to help with a UWP app as all the sites and forums I have looked at all seem to have similar code to the first link.
I can access the Ftp site through windows explorer on my laptop and drag and drop files that way so I know the site is accessible.
Not sure if there is a reference I am missing, I have the Internet(client) and Internet(client and Server) enabled in the appxmanifest.
From MSDN:
Download operations via FTP are supported. However, for FTP operations, authentication credentials must be provided within the specified URI. For example, ftp://user:password#server/file.txt
BackgroundDownloader class
Thanks for the replies.
I decided to use a package from https://www.chilkatsoft.com/ftp-2-dotnet.asp. which is available as a nuget package.
With a few lines of code I was able to upload a file using ftp with no problems.
I have setup Red5 server on my machine. It is working fine, only my problem is that I can not set up custom path for created new file.
I have googled on many sites, but there is no any solution. If any have any idea, please share.
There is an example of using custom paths for recording and playback here: https://github.com/Red5/red5-server/wiki/Customize-Stream-Path
I have tried creating war file for a play2.1.1 application following the instructions given in the github link - https://github.com/dlecan/play2-war-plugin/
However it fetches the plugins files from online repository and its been referenced in the play program. This method works only if the internet is connected.
Can i download the actual plugin file from this site and save it in my local system and generate a play war file offline?
Partially Yes. You need to go online only once to get all the dependencies downloaded. Once you are done, then you can work completely offline. Also I would like to mention this link: http://brainstep.blogspot.in/2013/10/how-to-install-play-2-war-bare-minimum.html
There is no official way for doing this, but if that aren't to much files, you can use Fiddler Web Debugger to look what files get downloaded, save them to your hard disk and then activate Fiddler's Auto responder. Everytime the Application requests the Files from the Server, Fiddler replies with the Files on your Hard disk.
I would like to be able to click a link which has the directory path to a remote server and be able to open a local application (namely notepad++) to edit the remote file.
I can map a drive to the remote server to allow the notepad++.exe to have a local path to look for when trying to run the application... I just need a way to get a link click to automatically open notepad++.exe with the remote file for editing.
Any ideas? I know I am vague quite a bit here but please ask for any clarifications or other dependencies you might think could work that I might add into the requirements of this question and I will be happy to respond.
Thanks for any help!
Cheers!
Yes this is a programming question how would you code this into a web page to allow for users to click a link to open a local application with a remote server path to a file to be edited it's a multi-faceted question with inclining of non-programming problems but programming still involved)... I actually just found a solution about an hour ago. Basically needed to do a javascript call passing an ActiveX object with the files location on the remote server on click and then opening a shell via javascript passing the notepad++.exe path with the file path to the remote file to open.
I'm looking to download a file from an FTP server as well as upload a file to an FTP server with Objective-C. Don't point me out to ConnectionKit, iPhone resources, or integration of Applescript code please.
If you want horrible integration of this you can use an NSTask to use with wget or ftp.