Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Problem with batch and URI/URL uploads  (Read 9737 times)

0 Members and 1 Guest are viewing this topic.

zoombago

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Problem with batch and URI/URL uploads
« on: June 20, 2005, 08:14:25 pm »

For some reason I can't get any sort of folder selection to come up for the batch upload.  ???

When I try URL/URI I get:

Warning: fopen(): URL file-access is disabled in the server configuration in yadayada/pics/upload.php on line 1628

Warning: fopen(http://www.blahblah.net/PICT4810.JPG): failed to open stream: no suitable wrapper could be found in yadayada/pics/upload.php on line 1628

(I have changed a couple paths, just for my privacy.  ;))

Anyways, I was wondering if there's anything I can do to fix this. I need one or the other as doing it through the interface otherwise is too clumsy.

My host is Dreamhost if it makes a difference.
« Last Edit: June 20, 2005, 11:04:42 pm by TranzNDance »
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Problem with batch and URI/URL uploads
« Reply #1 on: June 20, 2005, 08:59:32 pm »

http://www.webmasterworld.com/forum88/6253.htm

You should talk to your host about that error message.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

zoombago

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Problem with batch and URI/URL uploads
« Reply #2 on: June 20, 2005, 09:14:43 pm »

Looks like they have it disabled, and likely won't enable it.

http://wiki.dreamhost.com/index.php/Allow_url_fopen

Is there a workaround for it? Could this be affecting my batch upload that's also not working?
Logged

zoombago

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Problem with batch and URI/URL uploads
« Reply #3 on: June 20, 2005, 09:33:59 pm »

Okay, they got back to me, said I have to use Curl. How can I use it? I've really got no idea.  :-\\
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Problem with batch and URI/URL uploads
« Reply #4 on: June 20, 2005, 09:43:55 pm »

I guess you'd have to wrap the fopen inside curl_init, something like this:

Code: [Select]
$ch = curl_init("http://www.example.com/");
$fp = fopen("example_homepage.txt", "w");

curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT_HEADER, 0);

curl_exec($ch);
curl_close($ch);
fclose($fp);

That code is right from the php website.  I've never used curl so I don't know exactly what changes would be needed.  Perhaps one of the other devs has experience with curl.  If not, you may have to find another script that doesn't use fopen, or you'll have to find another host more Coppermine friendly.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

zoombago

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Problem with batch and URI/URL uploads
« Reply #5 on: June 20, 2005, 09:59:46 pm »

Alrightty, think I'll wait for someone to confirm what I should do.

In the meantime, I was uploading a 10mb video clip to my site and it timed out right away (didn't even transfer after the first 0.5mb). I don't think it's my connection as a 3mb file uploaded just fine.

Maybe some sort of setting?
Logged

Nibbler

  • Guest
Re: Problem with batch and URI/URL uploads
« Reply #6 on: June 20, 2005, 10:05:32 pm »

Here's a version specially modified to use curl, see if it works.
Logged

zoombago

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Problem with batch and URI/URL uploads
« Reply #7 on: June 20, 2005, 10:54:27 pm »

Yes! There we go.  ;D
Logged

markmaior

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
Re: Problem with batch and URI/URL uploads
« Reply #8 on: June 30, 2005, 08:07:28 pm »

Here's a version specially modified to use curl, see if it works.

Hi..I've just downloaded the file and I've uploaded it on my server but when I try to upload a picture I receive this message:

Fatal error: Call to undefined function: curl_init() in /cpg133/upload.php on line 1631

What does it mean???
Logged

Nibbler

  • Guest
Re: Problem with batch and URI/URL uploads
« Reply #9 on: June 30, 2005, 08:08:27 pm »

It means the server doesn't support curl.
Logged

markmaior

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
Re: Problem with batch and URI/URL uploads
« Reply #10 on: June 30, 2005, 08:17:27 pm »

Ok...thanks for your quick answer. There is another way to fix this error??
Logged

Nibbler

  • Guest
Re: Problem with batch and URI/URL uploads
« Reply #11 on: June 30, 2005, 08:28:11 pm »

Get a better webhost.
Logged

markmaior

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
Re: Problem with batch and URI/URL uploads
« Reply #12 on: June 30, 2005, 08:30:49 pm »

yeah...it's just what I'm thinking about eheh...  :)
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 15 queries.