Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[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 :)
- jQuery multi file upload
- some php script of file upload
- 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
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
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
Re: [request] Upload files to server by guests
sed_afu can be downloaded through this page
Offline