Tags:
create new tag
, view all tags

UploadToTWikiAddOnDev Discussion: Page for developer collaboration, enhancement requests, patches and improved versions on UploadToTWikiAddOn contributed by the TWikiCommunity.
• Please let us know what you think of this extension.
• For support, check the existing questions, or ask a new support question in the Support web!
• Please report bugs below

Feedback on UploadToTWikiAddOn

-- PeterThoeny - 11 Feb 2007

Hm, why not use the BuildContrib instead?

-- FranzJosefSilli - 11 Feb 2007

Because of simplicity and because of different scope. BuildContrib is a build environment, requires a working TWiki installation, requires to build a project in order to upload files, and it uploads predetermined files to a specific location. The uploadtotwiki.pl script is a general purpose upload script like scp; it is typically installed on a different server than TWiki, and it does not require TWiki to be installed on the machine where the upload script is executed.

-- PeterThoeny - 11 Feb 2007

Idea for improvement: Change parameters to allow wildcards, e.g.:
uploadtotwiki.pl -l JohnSmith -c "This is the attachment comment" dsc*.jpg http://twiki.org/cgi-bin/view/Sandbox/UploadTest. This makes it similar to scp.

-- PeterThoeny - 11 Feb 2007

New version posted at UploadToTWikiAddOn:

  • Added -l, -p, -c, -h, -i, -d parameters
  • Support for multiple file uploads

-- PeterThoeny - 13 Feb 2007

Peter... I'm using template logins and the thing seems to fail. I ran the perl debugger and the response from LWP has a base href of /bin/login ... page looks like a proper attachment took place, but nothing is changed on disk.

-- MatthewKoundakjian - 26 Apr 2007

It looks like the login expects Apache, so I moved over to that and will try it again, once I get it working.

-- MatthewKoundakjian - 27 Apr 2007

Ah, that is right, it is only designed for Apache login. Docs need to be updated.

-- PeterThoeny - 27 Apr 2007

This still doesn't seem to want to work for me, even after setting up Apache login.

I'm not sure why, either... I did a cursory debug run and I could see where it got a 401, then it tried to do the login and send... and it seemed to return success, but I didn't see the file.

I guess I'll have to watch more closely and also watch the TWiki logs and the Apache logs.

-- MatthewKoundakjian - 30 Jun 2007

Thanks Peter, this add-on rocks!

-- TobyCabot - 09 Mar 2008

I recently upgraded to TWiki 4.3 and the new CSRF protection prevents the upload, so to use this script sites running 4.3 will need to disable CSRF.

-- TobyCabot - 2009-12-19

 
Topic revision: r11 - 2009-12-19 - TobyCabot
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.