Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7919415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:51:23+00:00 2026-06-03T15:51:23+00:00

My HTML code <form method=post enctype=multipart/form-data action=upload.php> <input type=file name=’image’ > <input type=SUBMIT value=Submit>

  • 0

My HTML code

<form method="post" enctype="multipart/form-data" action="upload.php">
<input type="file" name='image' >
<input type="SUBMIT" value="Submit">
</form>

PHP code(Only the line which is errorneous is mentioned)

    <?php
    list($waste,$extension) = explode("/",$_FILES["image"]["type"]);echo $extension;
    ?>

It is giving file extension if the file is an image but it’s giving error in case of video.

ERROR

( ! ) Notice: Undefined index: image in D:\wamp\www\upload.php on line 3
Call Stack
#   Time    Memory  Function    Location
1   0.0007  364904  {main}( )   ..\upload.php:0

( ! ) Notice: Undefined offset: 1 in D:\wamp\www\upload.php on line 3
Call Stack
#   Time    Memory  Function    Location
1   0.0007  364904  {main}( )   ..\upload.php:0

Please tell me how to make it work for video uploading also.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T15:51:25+00:00Added an answer on June 3, 2026 at 3:51 pm

    The ini_set function is

    ini_set("max_filesize","150M");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following html code : <form name=uploadForm action= method=POST enctype=multipart/form-data> <input type=file
I am initializing file upload using the following HTML: <form enctype=multipart/form-data action=PHPScripts/upload.php method=POST> <input
My HTML code: <p>NEWS</p> <p> <form action=news.php method=post> <center><input name=NEW type=submit id=new value=NEW/> <input
I have an html input field, such as <form method=post action=process.php enctype=multipart/form-data> <div> <h3>Files:</h3>
I have the following form: <html> <body> <form action=upload_file.php method=post enctype=multipart/form-data> <label for=file>Filename:</label> <input
I have this html code <form method=post id=upload_video enctype=multipart/form-data action=/Home/Save> <div id=form_box> <input type=text
Hi I have the following code in my grails gsp <form action=upload-script-url method=post enctype=multipart/form-data>
Here's my HTML code although I think it's irrelevant: <form enctype=multipart/form-data action=../developers/submit.php method=post> <input
i am using this code for upload files to a server(in html): <form action=
I have an HTML form with an input field to upload a file. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.