I'm making a file server and I need to make a remote file browser. I want to make this but I have no idea on how this would be done. Can somebody help please? Thanks!
4 replies to this topic
#1
Posted 02 August 2012 - 03:20 AM
Hi everyone!
/>
I'm making a file server and I need to make a remote file browser. I want to make this but I have no idea on how this would be done. Can somebody help please? Thanks!
I'm making a file server and I need to make a remote file browser. I want to make this but I have no idea on how this would be done. Can somebody help please? Thanks!
#2
Posted 02 August 2012 - 03:58 AM
You could use the FS and Rednet apis to do this.
Or use the apache browser..
Or use the apache browser..
#3
Posted 29 September 2012 - 03:21 PM
Try using rednet to send the contents of the file but i just cant think of a way to edit it...
#4
Posted 30 September 2012 - 02:27 AM
one computer stores all the files and sends them in a message when requested, when the other computer receives it, have it convert it into an actual file (essentially downloading it) and then do the reverse for uploading.
All you need to do is figure out a decent way of signifying whether you want to download or upload a file (either via a preliminary message or via a tag at the beginning of the message like XML does)
That's the theory sorted, obviously you'd need the rednet and fs APIs, and coroutines would help if you wanted many computers accessing the data at once.
Such things are beyond me at the moment though, I am too tired to think of such complicated things.
All you need to do is figure out a decent way of signifying whether you want to download or upload a file (either via a preliminary message or via a tag at the beginning of the message like XML does)
That's the theory sorted, obviously you'd need the rednet and fs APIs, and coroutines would help if you wanted many computers accessing the data at once.
Such things are beyond me at the moment though, I am too tired to think of such complicated things.
#5
Posted 30 September 2012 - 03:37 PM
I usually try to help without actually writing programs for people, but for some reason I felt like writing my own approach to this one. I took a shell-based approach on the client side, have programs fget, fput, and flist that download, upload, or list the files on a server, plus setshare that sets the id of the computer running the main fileshare program. Specifically doesn't support subdirectories, instead putting or getting files only from a /shared directory. Doesn't do any authorizing either, just trusts requests from any computer.
to setup the server program:
For the client, I made a crude downloader script so you don't have to pastebin get 4 different programs:
To use it...
That's... pretty much it. Not very sophisticated, not very secure, but pretty simple to use, and a good starting point you could improve on.
source code links if you want to just read the code...
fileshare - server program
client programs:
setshare
fput
flist
fget</id></id>
to setup the server program:
pastebin get kyeT1W7t filesharethen just run fileshare to start the server. Expects a modem on top, if you've got it elsewhere change line 2 to replace "top" with whatever side it's on.
For the client, I made a crude downloader script so you don't have to pastebin get 4 different programs:
pastebin get VKLPjcPE setup setup delete setupwhen you run setup, you should see the messages as it runs pastebin 4 times to download fput, fget, flist, and setshare.
To use it...
Spoiler
That's... pretty much it. Not very sophisticated, not very secure, but pretty simple to use, and a good starting point you could improve on.
source code links if you want to just read the code...
fileshare - server program
client programs:
setshare
fput
flist
fget</id></id>
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











