Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-05-19 19:03:02

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

[request] Upload files to server by guests

I know it’s rather popular topic, and there is solution by Stephen Dickinson sed_afu. But there are some tips, that, i think, are worth to be realizeв шт new plugin:

  • upload not to txp’s files, but just to server
  • upload without page reloading – i thinks jQuery can help with this
  • make some js-functions run after upload is finished – this can be used to paste file’s name somewhere (some textfield, for example)

I’ve gathered some links, may be this can help if somebody will want to develope :)

  1. jQuery multi file upload
  2. some php script of file upload
  3. pseudo-ajax uplod – it seems that clear ajax is unreachable task

May be you have more useful links?

Last edited by the_ghost (2008-05-19 20:00:04)


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#2 2008-05-20 06:33:40

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: [request] Upload files to server by guests

There are other considerations for this like

check for name so as not to replace anything which is already uploaded. That means that the best way I can think of is to rename the uploaded files with either a numerical sequence or a numerical prefix.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2008-05-20 09:16:46

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: [request] Upload files to server by guests

The problem with replacing file with the same name. We can use mysql to store user provided name, or we can add some postfix\prefix if the same file exists. For ex. file.jpg would be renamed to 20080520174500_file.jpg or something like this.


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#4 2008-07-29 18:34:24

alannie
Member
From: Minnesota, USA
Registered: 2005-09-15
Posts: 150

Re: [request] Upload files to server by guests

Does anyone have a link to the sed_afu plugin mentioned in the original post?

Offline

#5 2008-07-29 19:55:51

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: [request] Upload files to server by guests

sed_afu can be downloaded through this page

Offline

Board footer

Powered by FluxBB