PDA

View Full Version : Uploadz Update



Luckyrare
28-05-2007, 02:46 PM
I started coding this yesterday. I rewrote the full upload function so when I get round to it the file management system will be more efficient. Rather than storing the files in the system it stores them in a SQL database.

There a still a few problems with MP3 files corrupting and thats WIP. It is in development so theres no designs, BBcodes or anything else.

Please upload a few different formats and view them (redownload them) to see if they have been corrupted at all.

Also the share.php is not on this dev, only the direct link. gif, jpg, png, bmp, tiff, fla, psd, zip, rar, swf, torrent files are supported - mp3 has been removed until I have worked out the problem but I added the torrent format. The file names are shorter and strips away all that. I am thinking of removing the support for the tiff, what do you think?

http://www.uploadz.co.uk/danny/uploadz_testing/

Please report any problems and post ideas.

Kind regards
Danny

:Edzy
28-05-2007, 02:48 PM
wow thats mazin, +REP when can

alzo

will you be releasing proxy source codes?

Luckyrare
28-05-2007, 02:50 PM
wow thats mazin, +REP when can

alzo

will you be releasing proxy source codes?

The edit I made on the proxy is very simple, the code is like 10 lines long. Set a cookie, add 1 on each load, if its more than 3 - include proxy. I may post it

Ini
28-05-2007, 03:23 PM
I tried uploading a 500MB video file and got nowhere it was taking ages.

Uploads quicker Through cPanel 11 and you get a progress bar

Luckyrare
28-05-2007, 03:31 PM
I tried uploading a 500MB video file and got nowhere it was taking ages.

Uploads quicker Through cPanel 11 and you get a progress bar

It doesnt support any video format?

Ini
28-05-2007, 03:40 PM
Also the share.php is not on this dev, only the direct link. gif, jpg, png, bmp, tiff, fla, psd, zip, rar, swf, torrent files are supported - mp3 has been removed


SWF is a video file?

Drompo
28-05-2007, 03:46 PM
swf is flash

Blob
28-05-2007, 03:46 PM
I uploaded an image and it cut half off.

ScottDiamond
28-05-2007, 03:57 PM
LOOOL that made me laugh so much.

Luckyrare
28-05-2007, 04:02 PM
I uploaded an image and it cut half off.


mmm, was the image made in Fireworks?

Link me to the file please ;)

SWF is a flash file, 500MB is to big.

today
28-05-2007, 04:04 PM
http://www.uploadz.co.uk/danny/uploadz_testing/1/E873.jpg

whoops. ;]

Blob
28-05-2007, 04:05 PM
mmm, was the image made in Fireworks?

Link me to the file please ;)

SWF is a flash file, 500MB is to big.

It was made in Photoshop, it is a GIF

Its

http://www.uploadz.co.uk/danny/uploadz_testing/1/e874.gif

but i uploaded it normal and it is supposed to look like

http://www.uploadz.co.uk/926colour.gif

Luckyrare
28-05-2007, 04:17 PM
It handles small files nicely, larger files it currupts. Does anyone know if usualy theres a max file size you can store in the /tmp/ folder? I may upload it a directory, change to sql (cron) and delete the one stored on the directory.

:Edzy
28-05-2007, 05:03 PM
http://www.uploadz.co.uk/danny/uploadz_testing/1/E873.jpg

whoops. ;]

darn, i got excited because i thort something interesting would load :(

the wombats
28-05-2007, 05:11 PM
http://www.uploadz.co.uk/danny/uploadz_testing/1/F54.png

that was fine...

then this one was cut in half:

http://www.uploadz.co.uk/danny/uploadz_testing/1/d953.jpg

danny, don't release the coding on the proxy.

Invent
28-05-2007, 05:29 PM
Nice upload script.

@Craig/Acohol: The script isn't hard, if Danny doesn't release it I might.

Recursion
28-05-2007, 05:53 PM
Cut more than half off:

http://www.uploadz.co.uk/danny/uploadz_testing/1/Y641.png

today
28-05-2007, 06:15 PM
ok ok ok, we know it cuts big images off.

Florx
28-05-2007, 06:29 PM
funky weird.

Anyway good luck with it ;)

Sygon..
28-05-2007, 07:48 PM
This may / not have an affect on it,

Instead of using copy()

Use move_uploaded_file();

As i think copy() doesnt delete the tmp file? That may be stupid of me but meh?

Luckyrare
28-05-2007, 10:11 PM
This may / not have an affect on it,

Instead of using copy()

Use move_uploaded_file();

As i think copy() doesnt delete the tmp file? That may be stupid of me but meh?

Doesnt work like that as such. Although I may use copy() - to copy the file and cron it over to mysql. I will have a play tomorrow

Want to hide these adverts? Register an account for free!