I am reposting a question here from the troubleshooting forum as this is apparently more of a mod than a troubleshooting issue:
I need to have the Download URL support a link to a local network such as:
http://snapserver_1/images/AV3311.epsApparently there has to be a presence of both "www" and ".com" (or .something) in the URL for a sucessful upload of an image with a download path.
I'm looking for a way to be able to use a path that always starts out with "
http://snapserver_1/" to be able to download from a network share.
V@no was kind enough to have me try a few things to the member.php file, but with no luck.
I've tried replacing:
Code: $remote_media_file = format_url(un_htmlspecialchars(trim($HTTP_POST_VARS['remote_media_file'])));
$remote_thumb_file = format_url(un_htmlspecialchars(trim($HTTP_POST_VARS['remote_thumb_file'])));
in member.php
with
Code: $remote_media_file = un_htmlspecialchars(trim($HTTP_POST_VARS['remote_media_file']));
$remote_thumb_file = un_htmlspecialchars(trim($HTTP_POST_VARS['remote_thumb_file']));
I've also tried replacing:
Code: if ((empty($HTTP_POST_FILES['media_file']['tmp_name']) || $HTTP_POST_FILES['media_file']['tmp_name'] == "none") && ($remote_media_file == "" || !check_remote_media($remote_media_file))) {
replace with:
Code: if ((empty($HTTP_POST_FILES['media_file']['tmp_name']) || $HTTP_POST_FILES['media_file']['tmp_name'] == "none") && ($remote_media_file == "")) {
Neither seems to work. I still get an error when I try to upload. (The page displays with red words in the Download URL area indicating that there's a problem.
Looking at the
members.php file, it looks to me like it has to be something with modifying:
$image_download_url = (isset($HTTP_POST_VARS['image_download_url'])) ? format_url(un_htmlspecialchars(trim($HTTP_POST_VARS['image_download_url']))) : "";
to remove the "www" and ".com" checking.
Any ideas in this MOD forum?
Thanks for your help!
Dave Anderson