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

Is it possible to upload files to a table (inline)?

-- SimonGao - 2013-01-03

Simon, I am not sure I understand what you want. You could attach a file in TML (TWiki Markaup Language) format, then INCLUDE that in a TWiki page. You could also remotely read/modify/save TWiki pages using CurlTool or the like. See also ConnectByRestPlugin.

-- PeterThoeny - 2013-01-04

Instead of uploading a file to attachment table, our users want to upload files to their own table on a topic page. So the steps include: 1)Edit a table, 2)Add a new row, 3)Upload a file (inline), 4)Save the table.

-- Simon Gao - 2013-01-07

Look into TWikiForms based apps and CommentPlugin with custom template. Ask support questions in the Support forum.

-- Peter Thoeny - 2013-01-07

Edit | Attach | Watch | Print version | History: r15 < r14 < r13 < r12 < r11 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r15 - 2013-01-07 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.