upload with fopen disabled with cpg 1.4.9 upload with fopen disabled with cpg 1.4.9
 

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]

Main Menu

upload with fopen disabled with cpg 1.4.9

Started by mullet, October 18, 2006, 10:15:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mullet

Does anyone have an upload.php that works with fopen disabled?  Since it is not my server I cannot enable it.   I tried the version that wrapped curl for an earlier version of cpg but now with 1.4.9 I get:
Fatal error: Cannot redeclare spring_cleaning() (previously declared in upload.php:403) in include/logger.inc.php on line 104

Joachim Müller

Disable URL uploads and use regular http uploads.

mullet

Thanks...
Let me state my actual problem instead...  Uploading large files via normal http.  It seems anything larger then 5Megs (like a WMV) doesnt make it through http upload.  I have been getting around the problem by using FTP to transfer the large file and just referencing a local URI/URL.  My size restrictions are set to 50Megs so I dont think this is the problem. 

Is there anything I can do for that?  If not is there a way to wrap curl into the upload.php to get me around this problem?

much appreciate the feedback!

Sami

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

Joachim Müller

There's little point in FTP-uploading pics to your webspace and then using URI uploads (which has all drawbacks of http uploads like browser timeouts). URI uploads are meant to add pics that originally reside on remote webspace. It's not very surprising that you run into timeouts. Do as Sami suggested and use batch-add from now on.
What you did before was like buying a Porsche and then driving it in the swamp. Use your Posche to drive on roads and you'll see how fast your Porsche can go.

mullet

Quote from: GauGau on October 20, 2006, 09:22:26 AM
...Do as Sami suggested and use batch-add from now on.
What you did before was like buying a Porsche and then driving it in the swamp. Use your Posche to drive on roads and you'll see how fast your Porsche can go.
Interesting analogy... point taken. 
Thanks for the  tip on using the batch upload function... not sure why I didnt figure that out.  Now I just need to figure out why the wmv's aren't streaming... they used to before the upgrade to 1.4.9 so Im sure its some configuration thing.

The only debug notices I get are:
Notices
/include/themes.inc.php
Notice line 2196: Undefined index: uid
Notice line 2280: Undefined variable: report_tgt
Notice line 1899: Undefined index: uid
/displayimage.php
Notice line 319: Undefined variable: meta_keywords


Again.. thanks for the help!

Joachim Müller

Quote from: mullet on October 20, 2006, 02:37:01 PM
Now I just need to figure out why the wmv's aren't streaming...
Different issue - in the future, please respect the "one question per thread" policy. Resolution: Video Files not showing / playing

Quote from: mullet on October 20, 2006, 02:37:01 PM
The only debug notices I get are:
Notices
/include/themes.inc.php
Notice line 2196: Undefined index: uid
Notice line 2280: Undefined variable: report_tgt
Notice line 1899: Undefined index: uid
/displayimage.php
Notice line 319: Undefined variable: meta_keywords
Turn notices_display off if they don't mean anything to you - they are a feature meant for devs only who understand the code behind coppermine - they won't help you troubleshoot anything unless you're a skilled coder. Again: not related.

Since your original question was resolved, I'm marking this thread accordingly. If your other issue persists after having read the thread I refered to, start an independent thread.

mullet

Checking referring thread... appologies for multiple questions on this one and will not happen again :)
Thanks again!