Use network drive mounted at /mydrive for media folder

I am trying to use network drive mounted at /mydrive for media folder but when I enter the path in setup page, the page reports an error stating “you need to enter fully qualified path”. I have tried changing the owner of the /mydrive to www-data but no use.
Please advise.