Upload files script

42 views
Skip to first unread message

skye riquelme

unread,
Nov 23, 2009, 1:53:04 PM11/23/09
to TiddlyWiki
Hi All

Thanks to BidiXTW the issue of uploading TWs and even individual
tiddlers is well catered for and working well ....after some teething
problems and lots of great support.

Within the education package that I have developed it is convenient to
have students directly an external file to my server....a local
report, for example......so I am looking for a plugin that simply
browses for a local file and then allows students to upload that file
to me.

I tried installing FireFTP in their browsers ....but that is a bit
complicated for them to understand

Any ideas???

I have found a few php scripts which do just this....but don´t know
enough to be able to modify these scripts to work inside a
tiddler......any pointers??

Thanks
Skye

Måns

unread,
Nov 23, 2009, 5:13:07 PM11/23/09
to TiddlyWiki
Hi Skye

> Any ideas???
Why not use Dropbox and a shared folder?
You can actually install DropBox as a systemservice on your server and
share a folder via symlink..
http://www.bram.us/2008/12/15/using-dropbox-as-a-free-web-publishing-solution/

Your students will never have to bother with ftp's and the like...
it's just a folder in their Documents. DropBox allows control of
versionhistory and seems to be quite reliable..

> I have found a few php scripts which do just this....but don´t know
> enough to be able to modify these scripts to work inside a
> tiddler......any pointers??
Please share - I would like to see the possiblities...
Untill now I have been using Moodle, Claroline and MediaWiki for
fileuploads (iframing them into TWs), but I would like to see simpler
solutions for local hosting...

Regards Måns Mårtensson

Måns

unread,
Nov 24, 2009, 8:26:42 AM11/24/09
to TiddlyWiki
Hi Skye

I found something that seems to work (don't know how secure it is
though)
http://hypersilence.net/silentum_uploader.php
It's open source PHP scripts and you can make any change you like -
including to translate it... (Which I like..)

You upload 3 files to your server (I put mine in the same folder as my
TW to get direct access to uploaded files)
1 upload.php
2 uploader.php
3 uploadlog.txt

and create a folder called "files". (remember to set chmod to
writable...)

Then you can access the uploadform directly from a tiddler via an
iframe like this:
<html><div align="center"><iframe src="./upload.php" frameborder="0"
width="100%" height="300"></iframe></div></html>

There's even a guestbook available which is just as easy to install
(with captcha and more - I can't make it work though)

I've made and example here http://tinyurl.com/yfpbjab (3 tabs) picture
of christian which I uploaded with Upload.php - and show by referring
to the local directory ./files/image.jpg - Uploadform and Guestbook

Regards Måns Mårtensson

Måns

unread,
Nov 24, 2009, 8:32:37 AM11/24/09
to TiddlyWiki
http://tinyurl.com/yfpbjab
doesn't seem to work - here's the full Url:

http://xn--mns-ula.dk/projekt/#BilledTest%20%5B%5BUpload%20filer%5D%5D%20G%C3%A6steBog

Regards Måns Mårtensson

On 24 Nov., 14:26, Måns <humam...@gmail.com> wrote:
> Hi Skye
>
> I found something that seems to work (don't know how secure it is
> though)http://hypersilence.net/silentum_uploader.php
> It's open source PHP scripts and you can make any change you like -
> including to translate it... (Which I like..)
>
> You upload 3 files to your server (I put mine in the same folder as my
> TW to get direct access to uploaded files)
> 1 upload.php
> 2 uploader.php
> 3 uploadlog.txt
>
> and create a folder called "files". (remember to set chmod to
> writable...)
>
> Then you can access the uploadform directly from a tiddler via an
> iframe like this:
> <html><div align="center"><iframe src="./upload.php" frameborder="0"
> width="100%" height="300"></iframe></div></html>
>
> There's even a guestbook available which is just as easy to install
> (with captcha and more - I can't make it work though)
>
> I've made and example herehttp://tinyurl.com/yfpbjab(3 tabs) picture

Måns

unread,
Nov 24, 2009, 8:45:48 AM11/24/09
to TiddlyWiki

> There's even a guestbook available which is just as easy to install
> (with captcha and more - I can't make it work though)
It *works* very well!! http://hypersilence.net/silentum_guestbook.php
I simply forgot to upload the image folder...

I will try if I somehow can extract the fields from the php's - to
have a more TW-like interface..
If you know how to do this - please tell

Regards Måns Mårtensson

Måns

unread,
Nov 24, 2009, 12:42:27 PM11/24/09
to TiddlyWiki
>
> I have found a few php scripts which do just this....but don´t know
> enough to be able to modify these scripts to work inside a
> tiddler......any pointers??
http://www.americanfinancing.net/html-upload-form.cfm

This form can be changed/modified (remove all the commercial stuff)
and upload TW-files from your students.
You just have to be able to upload files via html of a reasonable
size..

It's just php and html - no sql or database is required - same is true
with: http://hypersilence.net scripts..

I've setup a completely modified version here
http://xn--mns-ula.dk/projekt/#%5B%5BUpload%20TW%5D%5D (for
demonstration purpose only - sizelimit (admin host) is too low to
allow for TW uploads)

Another solution, which uses sql and seem to be very versatile is:
http://www.cloudosys.com/more.php (light version is free)
I couldn't install it myself - I presume it's because the server needs
Curl... don't know..

Regards Måns Mårtensson

Tobias Beer

unread,
Nov 26, 2009, 5:25:08 AM11/26/09
to TiddlyWiki
"I will try if I somehow can extract the fields from the php's"

What do you mean by that?

Måns

unread,
Nov 26, 2009, 12:07:36 PM11/26/09
to TiddlyWiki
Hi Tobias

Revealing ignorance on my side -
I knew that was a bad phrase when I wrote it.

> "I will try if I somehow can extract the fields from the php's"

Almost all the uploadpackages are working in php "dous" or "trios".
There's a php for configuration another for the activity of uploading
and a third which is merely an inputform of some kind...
I'd like to replace the inputform with a tiddler inputform making
"calls" to the php doing the actual work..
Something like Eric Shulmans send form. It uses an external mail.php.
I haven't got a clue - and I have never tried to do it - but I will
try to investigate Eric Shulmans send form comparing it to a mail.php
script and see if I can find some kind of connection..

If you have some hints - I'd apreciate it :-)

Regards Måns Mårtensson
Reply all
Reply to author
Forward
0 new messages