Update for those interested:  I registered the offending MIME types with Wordpress and cured some of the errors.  For example, setting DMG files to application/octet-stream in Wordpress allowed me to upload smaller DMG files without getting the FaultException from XMLRPC.

I've noticed that in bloggin.rb it never sets the data type before the newMediaObject call.  Everything I can find says that this is a required field.  What happens when it's not set?  Can you force it to ignore or set it to a default?  I attempted to add a MIME::Types library and determine the type but it didn't make a difference to Wordpress.

I'm still getting the last error on large files.  The upload limit on my server is set to 20 megs, but I think I'm running into a timeout.  I can issue a set_time_limit(1000) in the xmlrpc.php file right before the upload, which seems to override it for a couple of minutes but I still get the error, so I'm not sure that the timeout is the answer.  If anyone has any suggestions I'd love to hear them. 

In short, while I'd love to see this working and a part of the blogging bundle, if it requires this much server hacking I think I'll stick with my usual method of FTP and hand coding links.  Actually, it would be relatively simple to set up a Transmit script to send to your wordpress upload folder and then build a drag command to upload the dropped file with docksend and return a url based on the upload directory...  

Brett

On Nov 2, 2006, at 5:53 AM, Brett Terpstra wrote:

Just a little more info, here are some specs for successes and failures:

Microformats.zip 4Kb ok

SIMBL.tbz 28Kb Error uploading file. Check your configuration and try again. XMLRPC::FaultException

SurveyGizmo-Plugin.zip 12Kb ok

garyscookbook_2_1.zip 332Kb ok

KeyCue21-Install.dmg 596 Kb Error uploading file. Check your configuration and try again. XMLRPC::FaultException

KeyCue21-Install.dmg.zip 584Kb Ok (I just made an archive from the above file)

Any file larger than that gets this:

/usr/lib/ruby/1.8/xmlrpc/client.rb:535:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filecall2'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:399:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filenewMediaObject'
from /Users/brett/Library/Application Support/TextMate/Pristine Copy/Bundles/Brett Terpstra’s Bundle.tmbundle/Support/lib/blogging.rb:833:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filepopen'
from /Users/brett/Library/Application Support/TextMate/Support/lib/progress.rb:11:in /bin/bash: -c: line 1: unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of fileupload_file'
from /tmp/temp_textmate.AmdZT3:3

On Nov 2, 2006, at 5:48 AM, Brett Terpstra wrote:

I'm probably being daft about something, but could someone take a look at my modification to blogging.rb and tell me why it errors out on different files?  It seems to deal alright with small zip files, but files of type dmg or tbz or anything other than zip, or files larger than about 500k cause a variety of errors.  I'm not sure if the problem lies with Wordpress or my methods.

Thanks for any help.

Brett



On Nov 2, 2006, at 1:22 AM, Daniel Käsmayr wrote:

Brett, 

thanks for correcting my quick hack… I was just happy that it works with my stuff and inserts markdown code.

but…

Am 2. Nov 2006 um 03:27 schrieb Brett Terpstra:

I've got a working version right now but am adding some of the above ideas. If anyone is interested I'll tweak it up and send it along to add to the discussion.

…you definitely should post your superified version of it! ;)

Dan

PS: can I have a birthday edition of TM?

______________________________________________________________________
For new threads USE THIS: textmate@lists.macromates.com
(threading gets destroyed and the universe will collapse if you don't)

Brett Terpstra : Art Director
Circle Six Design, Inc.
111 Riverfront Dr, Suite 204
..................................................
p: 507.459.4398
    877.858.4332
f: 1.866.540.3063
..................................................



______________________________________________________________________
For new threads USE THIS: textmate@lists.macromates.com
(threading gets destroyed and the universe will collapse if you don't)

Brett Terpstra : Art Director
Circle Six Design, Inc.
111 Riverfront Dr, Suite 204
..................................................
p: 507.459.4398
    877.858.4332
f: 1.866.540.3063
..................................................



______________________________________________________________________
For new threads USE THIS: textmate@lists.macromates.com
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate

Brett Terpstra : Art Director
Circle Six Design, Inc.
111 Riverfront Dr, Suite 204
..................................................
p: 507.459.4398
    877.858.4332
f: 1.866.540.3063
e: brett@circlesixdesign.com
http://www.circlesixdesign.com
..................................................