--
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