In this tutorial I will show you how to upload single and multiple files using PHP based CodeIgniter framework 4. In many enterprise applications files upload is an important task for various purposes. CodeIgniter makes working with files uploaded through a form much simpler and more secure than using PHP’s $_FILES array directly. This extends the File class and thus gains all of the features of that class. Using PHP’s $_FILES array super global variable has some major shortcomings when working with multiple files uploaded at once, and has potential…
ContinueTag: single file upload
Single and Multiple Files Upload Example in Django REST API
Most of the applications require at least one file needs to be upload for a reason, such as, for uploading bulk data or processing file data for business requirement. This example will show you how to upload single or multiple files using Django REST framework. REST is an acronym that stands for Representation State Transfer which works on http/https protocol. It is light weight and delivers data very fast. I am assuming you have a basic knowledge on Python and Django REST framework before you proceed further down. I am…
ContinueSingle or Multiple Files Upload Example in Django Framework
In your application or project there is always a requirement for uploading a file data. This file data could be in a specific format depending on your requirement. Here I am going to explain you how you can upload single or multiple files in your python based Django framework. I am assuming you have a basic knowledge on Python and Django framework before you proceed further. I am also going to show you how to implement CSRF token for uploading files.
ContinueHow to upload and display Image using Angular 8/11
Introduction In this tutorial I will upload and display image using Angular. In this example I will allow to upload only single image and display the uploaded image on the web page. You might have seen how to upload file using Angular, but here I am uploading and displaying the image. I am also validating the uploaded file is image or not from its mime type.
ContinueFile Upload and File Download REST APIs Testing using Rest Assured in Java
Introduction In this tutorial I will show you how to test REST APIs used for file upload and file download. The file upload or download application might have been created using any server side technology. I am going to use here Rest Assured library with Junit 5 framework in Java programming language. I will use multipart for file upload test. For download test you don’t need such content type – multipart. The fluent API used by REST Assured supports the familiar Given/When/Then syntax from behavior driven development (BDD) framework, resulting in a…
ContinueAJAX File(s) Upload using Python Flask and jQuery
Introduction We will create an example here and we will show you how to upload single file or multiple files using AJAX and jQuery along with Python Flask technologies. You can either upload single file using browse button or multiple files using browse button by holding CTRL key(in Windows OS) from keyboard while selecting multiple files. The file or files is/are uploaded into a folder called uploads. Make sure this uploads folder exists in the system.
ContinueHow to call file upload REST API using Postman
Introduction Here I will show you how to call file upload REST API using Postman. Postman is a very popular REST client tool which is used to test your REST services. It is also used to test your REST service which uploads a single file or multiple files to remote server. There are other REST client extensions in Chrome and Firefox browsers but these extensions do not allow to test your file upload REST services. Even you can use Curl command or any other clients to test your file upload…
ContinueAngular + CodeIgniter File Upload Example
Introduction Angular + CodeIgniter file upload example will show here how to upload a file to server. Here CodeIgniter will be responsible for storing the file into a server location and Angular will be used on UI side to interact with end users, who will browse and select a file for uploading. We will create CodeIgniter REST API and will integrate with Angular to upload a file.
ContinueAngular + PHP File Upload Example
Introduction Angular + PHP file upload example will show here how to upload a file to server. Here PHP will be responsible for storing the file into a server location and Angular will be used on UI side to interact with end users, who will browse and select a file for uploading. We will create PHP REST API and will integrate with Angular to upload a file.
ContinueUpload file to server using React
Introduction In this post we will see how to upload file to server using React JS framework. In server side you can use any server side technology for implementing REST API that will store file into a physical path or persistence storage. Here we will only focus on client side technology React framework only. user will be provided a browse button to select a file and a button for uploading file into server. The button will be disabled by default until a user selects a file for uploading. You may…
Continue