Edit
by kavita Rangnath Mane - 9 years ago (2015-11-15)
I need code for upload .txt file
| I need to code for uploading a file. |
Ask clarification
3 Recommendations
PHP Multi File Uploader: Validate and process one or more file uploads
This class can validate and process one or more file uploads.
There is one class that can validate and process individual file uploads. It checks if the file name extension and MIME type is one of the allowed, as well if the file size is below the allowed size limit.
The class can create the destination directory if it does not exists and move the uploaded file to that directory.
Another class calls the first to validate and process multiple files being uploaded.
| by MOUSTAFA ELGAMMAL package author 215 - 9 years ago (2016-02-29) Comment
This class can validate and process one or more file uploads.
There is one class that can validate and process individual file uploads. It checks if the file name extension and MIME type is one of the allowed, as well if the file size is below the allowed size limit.
The class can create the destination directory if it does not exists and move the uploaded file to that directory.
Another class calls the first to validate and process multiple files being uploaded. |
Short Code CRUD: Perform CRUD operations on MySQL table records
This class can perform CRUD operations on MySQL table records.
It can perform several types of operations with records of a given MySQL table like:
- InsertRecord : Insert Record to database
- InsertMultipleRecord : Insert Multiple Records
- GetSingleRecord : Retrieve Single Record for Edit or View Action
- GetRecord: Get All or a limited number of Records with pagination
- UpdateRecord : Edit or Update Record Method
- DeleteRecord : Delete Record Method
- GetCustom : For results for arbitrary queries
The class can also generate HTML to display or update the table records like:
- PagiNation : Pagination Display
- UploadFile : Upload File
- DeleteFile : Delete File
- DateDifference : Date Difference
- RedirectPage : To Redirect Specific Pages
- EditLink : Edit Action Link
- StatusLink : Change active or inactive status Action Link
- DeleteLink : Delete Action Link
- SendMail : Send Mail method
- GetRandomString : Generate Random String
| by Bharat Parmar package author 455 - 9 years ago (2015-12-12) Comment
You can use the UploadFile() method from the class which allow you to upload file |
HTTP Upload: Handle files uploaded via Web forms
This class can be used to handle files that are uploaded to a server via Web forms.
It supports applying upload filters to restrict the files that are accepted according to configurable criteria like: file name extension, MIME type, file size, width and height in case the files are images.
It also supports handling uploads of multiple files.
It can also add prefixes to the uploaded file names, giving unique names or changing the file name extension for security reasons.
| by Dave Smith 7620 - 9 years ago (2015-11-15) Comment
There are a lot of scripts to handle file uploads, primarily images and image manipulation, which makes them a little more difficult to use if you just want a text file. This class can handle text and images, allows you to restrict files based on their mime type and is fairly simple to use. |