Hi,
I'd like to write an app that turns the iPhone into a file server (basically, the app should replicate the USB drive functionality that Apple unfortunately doesn't allow). The app should not require any additional software on the computer side. It should require a WiFi connection of both iPhone and computer on the same network. It should not run over the internet (for security reasons). I am currently at the very beginning of my project. So far, here's what I thought about:
- as Apple actively discourages the use of FTP/SFTP/AFP, running a lightweight HTTP server (like moongoose or lighttpd) on the iPhone seems like a good alternative. (What about WebDAV?)
- upon launch, the app gives the user a URL that the user can visit from his computer using his browser. All the communication is done over TLS.
- the user uploads and downloads files to / from the iPhone via an OS-independent webpage served by the iPhone.
- when the app closes, the HTTP server is obviously quit.
What do you think about this approach?
-- ranguvar
EDIT: Some people have experienced difficulties understanding that I'm not looking for an existing app with the functionality I described, which obviously already exists (hence the forum section I'm posting this in), that I don't do this to earn money but that I'd like to develop the app I describe for learning purposes.
I'd like to write an app that turns the iPhone into a file server (basically, the app should replicate the USB drive functionality that Apple unfortunately doesn't allow). The app should not require any additional software on the computer side. It should require a WiFi connection of both iPhone and computer on the same network. It should not run over the internet (for security reasons). I am currently at the very beginning of my project. So far, here's what I thought about:
- as Apple actively discourages the use of FTP/SFTP/AFP, running a lightweight HTTP server (like moongoose or lighttpd) on the iPhone seems like a good alternative. (What about WebDAV?)
- upon launch, the app gives the user a URL that the user can visit from his computer using his browser. All the communication is done over TLS.
- the user uploads and downloads files to / from the iPhone via an OS-independent webpage served by the iPhone.
- when the app closes, the HTTP server is obviously quit.
What do you think about this approach?
-- ranguvar
EDIT: Some people have experienced difficulties understanding that I'm not looking for an existing app with the functionality I described, which obviously already exists (hence the forum section I'm posting this in), that I don't do this to earn money but that I'd like to develop the app I describe for learning purposes.