Trouble with upload Trouble with upload
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Trouble with upload

Started by asg333, July 07, 2006, 07:00:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

asg333

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

asg333

Hi,

Anybody have any clues for me???

:)

Thank you!

Adam

Sami

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

asg333

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

Sami

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

asg333

Hi,

Yes, I used the correct path.

Did you give it a try?

Thanks!

Adam

Joachim Müller

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.

asg333

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

Sami

‍I don't answer to PM with support question
Please post your issue to related board

asg333

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

Joachim Müller

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.