Welcome to the tutorials of Pure PHP Upload 2.
In this list of tutorials you will learn how to create a file upload, restrict certain files or sizes of files from being uploaded, upload files and insert them in a database and much more...
In this list of tutorials you will learn how to create a file upload, restrict certain files or sizes of files from being uploaded, upload files and insert them in a database and much more...
In this tutorial we will explain how to upload files and other fields and update those in the database. The files will be saved on the server and their names and the other form fields will be updated in the database.
To make file upload and update a record, you need to:
TIP: You might also reuse the form you created for Upload
and insert record form tutorial, but delete all server behaviors first.
Select your database connection and table where you want to save the data in.
Assign all the entry fields from the form to the corresponding fields in your database.
Enter a redirect page at After Updating, Go To this will be the follow up page.
Click OK to insert the server behavior.
Choose upload folder, Images only but don't enter a redirect url in the Go To field. This is because you already have a redirect in the Upload Record server behavior.
To read more about uploading images read Allowing only images upload tutorial.
To read more about limiting the image size read Restricting image width and height tutorial
George Petrov is a renowned software writer and developer whose extensive skills brought numerous extensions, articles and knowledge to the DMXzone- the online community for professional Adobe Dreamweaver users. The most popular for its over high-quality Dreamweaver extensions and templates.
George is also the founder of Wappler.io - the most Advanced Web & App Builder