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: Trouble with upload  (Read 3778 times)

0 Members and 1 Guest are viewing this topic.

asg333

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Trouble with upload
« on: July 07, 2006, 07:00:41 pm »

Hi,

I am having trouble with uploading photos using the URL/URI method.  I have no trouble uploading photos directly from the hard drive.

When I try to upload using a URL, I receive the following CGI Error:

The specified CGI application misbehaved by not returning a complete set of HTTP headers

I am running IIS 6.0 on Windows 2003.

Any suggestions?

Thank you! :)

Adam
Logged

asg333

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Trouble with upload
« Reply #1 on: July 08, 2006, 03:40:14 pm »

Hi,

Anybody have any clues for me???

 :)

Thank you!

Adam
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Trouble with upload
« Reply #2 on: July 08, 2006, 04:35:02 pm »

sorry but we don't know what you are try to upload and from where?
post the url you try
Logged
‍I don't answer to PM with support question
Please post your issue to related board

asg333

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Trouble with upload
« Reply #3 on: July 08, 2006, 06:06:44 pm »

Hi,

Thank you for the reply.

I am trying to upload a photo using the URL/URI method.

http://www.yourdogphoto.com/cpg/upload.php

All permissions are set correctly, and uploading as a file from the hard drive works fine.

I appreciate your help!

Adam
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Trouble with upload
« Reply #4 on: July 08, 2006, 06:23:48 pm »

okey what path did you use for upload?
 it should be something like this: http://www.mysite.com/images/example.jpg
Logged
‍I don't answer to PM with support question
Please post your issue to related board

asg333

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Trouble with upload
« Reply #5 on: July 08, 2006, 09:22:30 pm »

Hi,

Yes, I used the correct path.

Did you give it a try?

Thanks!

Adam
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Trouble with upload
« Reply #6 on: July 09, 2006, 12:28:36 am »

Post the URI of the pic you tried to upload as bmossavari suggested. Keep in mind that URI upload will not work on all webserver setups (url_fopen must be enabled to allow uploads by URI). In my opinion, it's useless anyway. You (as coppermine admin) should use FTP-upload plus batch-add.
Logged

asg333

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Trouble with upload
« Reply #7 on: July 09, 2006, 07:00:26 am »

Thank you for the reply GauGau.

The URL I am trying is:  http://www.pacprod.com/oilpaintings/dog2.jpg

url_fopen is enabled.

The reason I would like it to work, is that site is going to be based on user uploads, and I would like to give them the option of uploading from the hard drive or by URL.  As I mentioned, file upload from the hard drive is working fine.  I am stumped why trying to upload using the URL gives a CGI error.

Do you have any suggestions of things I can try?

Thank you!

Adam
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Trouble with upload
« Reply #8 on: July 09, 2006, 07:38:23 am »

your URL is just fine!
check this out:
http://www.gidforums.com/t-1513.html
Logged
‍I don't answer to PM with support question
Please post your issue to related board

asg333

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Trouble with upload
« Reply #9 on: July 09, 2006, 10:32:25 pm »

Hi,

Thank you for the suggestions.  I tried the suggested fixes at gidforums.com and none seemed to help the problem.

The error I am getting in my logs is 502 which means:

Bad Gateway.  Web server received an invalid response while acting as a gateway or proxy. You receive this error message when you try to run a CGI script that does not return a valid set of HTTP headers.

Is there something I can add to upload.php that will allow it to return a valid set of HTTP headers?

Thanks!

Adam
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Trouble with upload
« Reply #10 on: July 09, 2006, 11:40:50 pm »

May sound like a lame excuse, but I suggest forgetting about URI upload, as it's a silly feature in the first place: users tend to just steal pics when you allow uploads by URI. If you want genuine pics taken and copyrighted by your users (oppossed to URI uploads where people tend to steal copyrighted pics), go for http uploads from user's local hard drives exclusively.
Logged
Pages: [1]   Go Up
 

Page created in 0.027 seconds with 19 queries.