Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-09-10 12:03:05

Sheru
Member
From: Kathmandu, Nepal
Registered: 2007-05-09
Posts: 96

File upload from visitors side(From front end) in Textpattern.

Dear All,
Accept my Greetings!

For some external user, I am thinking to make them able to upload file from the visitor side. Those user will be authenticated with username and password(I will provide them uname and password or some other technique). After the authentication only, they will be given upload form.

I am thinking to accomplish this but don’t have idea. Is there plugin or any pointers? Please help on this.

Thank you all for the great help again and again.
Sheru

Offline

#2 2008-09-10 13:48:46

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: File upload from visitors side(From front end) in Textpattern.

Sheru,
I’ve never tried it but I know Steve/net-carver has made a plugin called Anonymous File Upload:
It’s not publicly available but you can request it here

Offline

#3 2008-09-10 15:35:48

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: File upload from visitors side(From front end) in Textpattern.

Sheru,

For protecting your upload page/section/form try ign_password_protect.


Steve

Offline

#4 2008-09-10 23:22:54

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: File upload from visitors side(From front end) in Textpattern.

Oops! Sorry Sheru, Steve is right, I didn’t read well your request.

Offline

#5 2008-09-11 03:49:42

Sheru
Member
From: Kathmandu, Nepal
Registered: 2007-05-09
Posts: 96

Re: File upload from visitors side(From front end) in Textpattern.

Greetings!

Thank you both for for taking time to response my questions. Hope, This will help me to sort out my problem. I will come in touch.

I think, I need both plugin. First I need to authenticate to show the upload page. Only the authecticated user can view upload page. For file upload, would like to use anonymous file upload plugin but how far is this safe and Can this be done using bolth plugins or not?

Once again thank you so much.
Sheru

Last edited by Sheru (2008-09-11 03:59:56)

Offline

#6 2008-09-11 04:48:02

dreamer
Member
Registered: 2007-06-08
Posts: 242

Re: File upload from visitors side(From front end) in Textpattern.

any particular reason as to why we have to request the plugin from Steve?

Offline

#7 2008-09-15 16:15:44

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: File upload from visitors side(From front end) in Textpattern.

dreamer wrote:

any particular reason as to why we have to request the plugin from Steve?

I think because it’s Net-Carver’s plug-in – and he realizes that it could be dangerous if not used with the properly.
Unleashing it on the general population might cause some hosting TOS violations and a support nightmare.

I could be wrong – But that’s what I’ve gathered.

)


T

Offline

#8 2008-09-15 17:05:50

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: File upload from visitors side(From front end) in Textpattern.

dreamer

Just to explain things a little.

My plugin was originally written for anonymous file uploads, which is potentially different from Sheru’s case. In the anonymous scenario, the site could potentially be abused as a host for the spread of illegal/virused/abusive or pirated materials. The site owner has little control over content unless they act to secure their webserver and moderate first. This could lead to problems if the plugin were used in an uninformed way. Hence my personal distribution of this plugin is via request.

Every request generates an email outlining the dangers and possible courses of action open to the person who installs the plugin. Only if the requester then choses to act on the final instruction in that email will I personally send the plugin to them. I chose this way of doing it as even if someone wants it for a non-anonymous upload use now — they might not use it that way in a future site.

Manfre also has a plugin (mem_form) that allows file uploads — but it’s a form server and you’ll need to write the code to do the integration of the uploaded file into Txp itself.

I’ve also seen requests for adding file-upload capability to zem_contact_reborn, presumably with the intent that the uploaded file becomes an attachment to the outgoing email. Personally I’m not going down that route as that could turn any site using zcr into a virus distribution mechanism. (If someone takes a dislike to you or your site, then they could just use your contact form to send you an innocent looking file with a payload.)

It’s potentially a sticky area but I hope that clarifies a few things.


Steve

Offline

#9 2008-09-15 17:08:38

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: File upload from visitors side(From front end) in Textpattern.

Steve,

Sorry for speaking out of turn. : )


Tom

Offline

#10 2008-09-15 17:31:39

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: File upload from visitors side(From front end) in Textpattern.

Tom

Hi, no problem — thanks for covering for me :)


Steve

Offline

#11 2008-09-16 06:46:10

Sheru
Member
From: Kathmandu, Nepal
Registered: 2007-05-09
Posts: 96

Re: File upload from visitors side(From front end) in Textpattern.

Dear All,
Greetings!
Thank you all for your post.

Steve Wrote

Manfre also has a plugin (mem_form) that allows file uploads — but it’s a form server and you’ll need to write the code to do the integration of the uploaded file into Txp itself.

Could you guide me on this? I will try for this but I don’t know it’s complexity.

Thank you so much once again.
Sheru

Last edited by Sheru (2008-09-16 06:47:02)

Offline

#12 2008-09-16 07:00:33

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: File upload from visitors side(From front end) in Textpattern.

Sheru

Hello, I can’t really help at the moment as you haven’t said what needs to happen with those uploaded files. I suggest you post a more detailed request to the thread for the mem_form plugin including what you want to happen to the files — for example: if they need to be added to Txp’s file’s table and /files directory.

Thank you.


Steve

Offline

Board footer

Powered by FluxBB