bodge
ayy lmao
- Oct 31, 2011
- 406
- 54
Hello Devbest,
I have created a free easy to use file upload script.
It is some what basic and serves a good purpose.
When uploading the file name shortens and becomes a 10 character md5 hash (to be used in the url) which uploads in the database and the files folder (where everything is stored)
When uploading the the file extension is also taken to tell a user if the file is a png, zip, txt etc...
And once the file is uploaded it redirects you to the page where you can find your downloaded file.
Screenshots:
(I didn't spend so much time on CSS).
Index:
File uploaded:
TXT: (zoomed out)
Image: (zoomed out)
ZIP:
You will be able to edit this code, for example: adding more file types and changing the limit of the uploadable data.
Please give feedback, good and bad
Sorry there is no live preview, I only have one VPS and I use that for work and such and I don't want people uploading stuff to it.
SQL:
I have created a free easy to use file upload script.
It is some what basic and serves a good purpose.
When uploading the file name shortens and becomes a 10 character md5 hash (to be used in the url) which uploads in the database and the files folder (where everything is stored)
When uploading the the file extension is also taken to tell a user if the file is a png, zip, txt etc...
And once the file is uploaded it redirects you to the page where you can find your downloaded file.
Screenshots:
(I didn't spend so much time on CSS).
Index:
File uploaded:
TXT: (zoomed out)
Image: (zoomed out)
ZIP:
You will be able to edit this code, for example: adding more file types and changing the limit of the uploadable data.
Please give feedback, good and bad
Sorry there is no live preview, I only have one VPS and I use that for work and such and I don't want people uploading stuff to it.
SQL:
Code:
CREATE TABLE `files`(
`file_id` INT(11) NOT NULL AUTO_INCREMENT,
`file_path` VARCHAR(100) NOT NULL,
`file_name` VARCHAR(10) NOT NULL,
`file_type` VARCHAR(5) NOT NULL,
PRIMARY KEY (file_id)
) ENGINE=MyISAM;
You must be registered for see links
(
You must be registered for see links
)