News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Downloading from Drive G:

Started by Martinfin, July 07, 2019, 05:41:59 PM

Previous topic - Next topic

Martinfin

I looked everywhere but really don't know how to word it.

I have bigger files on G: drive but don't have much space on my C: drive as it is only a 64 gig SSD. How do I link
files to go to G: when my brother wants a big file?

example: hxxp://www.example.com/files/file1.zip but it reads from C: drive. Making any sense?

Appreciate the teaching I have been studying.
-> Martinfin

Sir Osis of Liver

Not sure I'm understanding your question, but hxxp://www.example.com/files/file1.zip does not load files from your local C: drive, it loads them from server.  You can't link to files on local drives.  If you're running a dedicated server with multiple drives, website and files should all be on same drive.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Martinfin

Actually it's off my PC (Wamp)
-> Martinfin

Gary

file:// reads from local drives, but having said that even then it'd only be accessible to you (as would using http:// on a local server), there'd be no way for your brother to access it unless you actually transferred it to him.
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

Martinfin

-> Martinfin

Aleksi "Lex" Kilpinen

#5
Assuming you have all set so that your brother can access files on your computer at all -
You should be able to do this, using symlinks - https://www.sevenforums.com/tutorials/278262-mklink-create-use-links-windows.html
Just, be careful - and create a reserved folder for this. You don't want to go linking just anything criss cross.

For example

mklink /D c:\httpdocs\virtualfolder g:\media\virtualmaterial

So that you can delete both folders later if you want, without breaking anything.
(This would tell windows that the contents of folder "virtualmaterial" should be shown in "virtualfolder" and should be accessible using the "virtualfolder" path.)




Edit: Though, I think using something like OneDrive might be a lot easier.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Martinfin

#6
Quote from: Aleksi "Lex" Kilpinen on July 07, 2019, 11:37:55 PM
Assuming you have all set so that your brother can access files on your computer at all -
You should be able to do this, using symlinks - https://www.sevenforums.com/tutorials/278262-mklink-create-use-links-windows.html
Just, be careful - and create a reserved folder for this. You don't want to go linking just anything criss cross.

For example

mklink /D c:\httpdocs\virtualfolder g:\media\virtualmaterial

So that you can delete both folders later if you want, without breaking anything.
(This would tell windows that the contents of folder "virtualmaterial" should be shown in "virtualfolder" and should be accessible using the "virtualfolder" path.)




Edit: Though, I think using something like OneDrive might be a lot easier.

I'll get back to you on this and Thank You!

Edit: Works but I just now have to learn how to link it right... Doesn't quite come out that easy for this old dog. But this working. Need to protect folder. Thanks for your help.
-> Martinfin

Aleksi "Lex" Kilpinen

Good to hear, I have never tried that with a server setup - so wasn't really 100% sure. Goodluck with it!
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Martinfin

Thanks so much. Can't believe I got it working and I'm not very smart.  Also got it protected. Having friends try to bust into it to see if I did it right but this is a nice piece of info. Hope someone else can utilize and learn from it.

Thanks again.
-> Martinfin

Aleksi "Lex" Kilpinen

No problem, glad you found it useful :)
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Advertisement: