Posts: 1,138
Threads: 211
Joined: Feb 2020
I've finally got around to fixing(err.. totally rewritting) the old file/image uploader. I've done testing and so I am opening it up for further testing/usage.
http://forum.qbasicnews.com/users/upload.php - beta
It should be pretty straightforward. It detects images and so will show them and they can be used as inline images e.g.
Code:
[url]http://forum.qbasicnews.com/users/file.php?id=7[/url]
Any other filetype will automatically be downloaded.
Bug reports, questions, comments, suggestions/etc all welcome. Post below, PM me or email (wildcard[at]hybd.net)
Posts: 3,522
Threads: 189
Joined: Dec 2003
File size limits? number of files limits? Total space usage limit?
Posts: 1,138
Threads: 211
Joined: Feb 2020
Quote:File size limits? number of files limits? Total space usage limit?
Its currently set to 1meg file limit but if required can be increased. No file number or total space usage limits. Remember its really for members here and not like quickhost which you can use anywhere freely, but saying that; you can use it on other sites but thats not the main intention.
Posts: 3,522
Threads: 189
Joined: Dec 2003
Ya, it's a good idea, I'll try to rip it apart later =)
Hmm... 1mb.. I don't know... you could make it something like 10mb max, and only allow users that are in a group to use it, to prevent idiots from registering and then uploading 9mb porn videos or alike.
Just an idea.
Posts: 1,138
Threads: 211
Joined: Feb 2020
Quote:Ya, it's a good idea, I'll try to rip it apart later =)
Hmm... 1mb.. I don't know... you could make it something like 10mb max, and only allow users that are in a group to use it, to prevent idiots from registering and then uploading 9mb porn videos or alike.
Just an idea.
Thats a good idea about the usergroup, I'll work on that.
Posts: 437
Threads: 32
Joined: Mar 2004
Also can we delete our own files?
Posts: 1,138
Threads: 211
Joined: Feb 2020
Quote:Also can we delete our own files?
Yes the option just needs to be put back in the form.
UPDATE: I've added in deletion now and you can force downloads of images by adding in &download e.g.
Code:
[url]http://forum.qbasicnews.com/users/file.php?id=16&download[/url]
Posts: 1,080
Threads: 87
Joined: Feb 2002
An error I got:
Warning: move_uploaded_file(../../../qbn_fil_stor/206-fb.gif): failed to open stream: Permission denied in /home/qbnews/public_html/forum/users/upload.php on line 107
Warning: move_uploaded_file(): Unable to move '/tmp/phpp04PUu' to '../../../qbn_fil_stor/206-fb.gif' in /home/qbnews/public_html/forum/users/upload.php on line 107
There was a problem moving your file
/post]
Posts: 1,138
Threads: 211
Joined: Feb 2020
There was a permission problem, its been fixed. Can you let me know if its working?
Posts: 1,080
Threads: 87
Joined: Feb 2002
It works like a charm ^_^ my signature is the witness (I moved its location
because pfeople seem to have a problem with images linked from freewebs.)
/post]