How can I use multiple input type file in one html form?
<p>Recently I need to use multiple input type file in one form. But when I post the form its returning null. Like I have nothing on $_POST. I have also add the enctype="multipart/form-data". I am stacked for last 2 days. Googled for many times. But still didn't get any solution. Please help me to out of this. </p>

<pre><code>&lt;form enctype="multipart/form-data" action="/admin/process_post/savepost" method="POST"&gt;
            &lt;div class="uk-grid uk-grid-small" data-uk-grid-margin=""&gt;
                &lt;div class="uk-width-medium-7-10"&gt;

                    &lt;div class="md-card"&gt;
                        &lt;div class="md-card-content"&gt;
                            &lt;h3 class="heading_a uk-margin-medium-bottom"&gt;Add New Canvas&lt;/h3&gt;
                            &lt;div class="uk-grid" data-uk-grid-margin&gt;
                                &lt;div class="uk-width-medium-1-1"&gt;
                                    &lt;div class="uk-form-row"&gt;
                                        &lt;label&gt;Post Title&lt;/label&gt;
                                        &lt;input type="text" name="post_title" id="post_title" class="md-input"  /&gt;
                                    &lt;/div&gt;

                                    &lt;div class="uk-form-row"&gt;
                                        &lt;label&gt;Post Description&lt;/label&gt;
                                        &lt;textarea id="post_desc" name="post_desc" cols="30" rows="20"&gt;&lt;/textarea&gt;
                                    &lt;/div&gt;

                                &lt;/div&gt;
                            &lt;/div&gt;

                        &lt;/div&gt;
                    &lt;/div&gt;


                &lt;/div&gt;

                &lt;div class="uk-width-medium-3-10"&gt;
                    &lt;div class="md-card"&gt;
                        &lt;div class="md-card-content"&gt;
                            &lt;div class="uk-form-row"&gt;
                                &lt;p&gt;
                                    &lt;input type="checkbox" name="post_status" id="post_status" checked data-md-icheck /&gt;
                                    &lt;label for="post_status" class="inline-label"&gt;Post Status&lt;/label&gt;
                                &lt;/p&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;

                    &lt;div class="md-card"&gt;
                        &lt;div class="md-card-content"&gt;
                            &lt;div class="uk-form-row"&gt;
                                &lt;label for="post_attachment" class="inline-label"&gt;Post Featured Image&lt;/label&gt;
                                &lt;input type="file" id="post_attachment" name="post_attachment"&gt;
                            &lt;/div&gt;

                        &lt;/div&gt;
                    &lt;/div&gt;

                    &lt;div class="md-card"&gt;
                        &lt;div class="md-card-content"&gt;
                            &lt;div class="uk-form-row"&gt;
                                &lt;label for="result_img" class="inline-label"&gt;Post result Image&lt;/label&gt;
                                &lt;input type="file" id="result_img" name="result_img" multiple="multiple"&gt;
                            &lt;/div&gt;

                        &lt;/div&gt;
                    &lt;/div&gt;

                    &lt;div class="md-card"&gt;
                        &lt;div class="md-card-content"&gt;
                            &lt;div class="uk-form-row"&gt;
                                &lt;button type="submit" class="uk-form-file md-btn md-btn-primary"&gt;Save Post&lt;/button&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;

                &lt;/div&gt;
            &lt;/div&gt;

        &lt;/form&gt;
</code></pre>

<p>I know this is a silly situation for a developer when they face problem like this.</p>