Simple Machines Community Forum

SMF Support => Server Performance and Configuration => Topic started by: Martinfin on July 07, 2019, 05:41:59 PM

Title: Downloading from Drive G:
Post by: Martinfin on July 07, 2019, 05:41:59 PM
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.
Title: Re: Downloading from Drive G:
Post by: Sir Osis of Liver on July 07, 2019, 07:00:58 PM
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.

Title: Re: Downloading from Drive G:
Post by: Martinfin on July 07, 2019, 08:54:41 PM
Actually it's off my PC (Wamp)
Title: Re: Downloading from Drive G:
Post by: Gary on July 07, 2019, 09:04:36 PM
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.
Title: Re: Downloading from Drive G:
Post by: Martinfin on July 07, 2019, 09:05:24 PM
Ok, Thank You very much.
Title: Re: Downloading from Drive G:
Post by: 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.
Title: Re: Downloading from Drive G:
Post by: Martinfin on July 10, 2019, 11:51:58 AM
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.
Title: Re: Downloading from Drive G:
Post by: Aleksi "Lex" Kilpinen on July 10, 2019, 12:57:14 PM
Good to hear, I have never tried that with a server setup - so wasn't really 100% sure. Goodluck with it!
Title: Re: Downloading from Drive G:
Post by: Martinfin on July 10, 2019, 03:11:28 PM
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.
Title: Re: Downloading from Drive G:
Post by: Aleksi "Lex" Kilpinen on July 10, 2019, 03:54:35 PM
No problem, glad you found it useful :)