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 8853777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:43:55+00:00 2026-06-14T13:43:55+00:00

I have a little uploadscript which is working great for normal sized images and

  • 0

I have a little uploadscript which is working great for normal sized images and files.

    function uploadimage($name,$dir)
{
    if($name['error'] > 0){
    die('An error ocurred when uploading.');
    }

    if(!getimagesize($name['tmp_name'])){
        die('Please ensure you are uploading an image.');
    }

    // Check filetype
    if($name['type'] != 'image/png'){
        die('Unsupported filetype uploaded.');
    }

    // Check filesize
    if($name['size'] > 500000){
        die('File uploaded exceeds maximum upload size.');
    }

    // Check if the file exists
    if(file_exists($dir. $name['name'])){
        die('File with that name already exists.');
    }

    // Upload file
    if(!move_uploaded_file($name['tmp_name'], $dir. $name['name'])){
        die('Error uploading file - check destination is writeable.');
    }

    return $dir. $name['name'];
    die('File uploaded successfully.');
}

$name is $_FILES[‘WHATEVER’] and $dir the dir. Well now I just changed a few lines of it to upload .csv files with it. So far so good. It’s working with little .csv files. But when I try a bigger one (20MB+) nothing happens when I post it. I checked my php.ini for upload_max_filesize and memory_limit , both are at 128M … Someone can give me a pointer where I should search the bug ?

  • 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-14T13:43:56+00:00Added an answer on June 14, 2026 at 1:43 pm

    Take a look at post_max_size too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have little problem how i will recognize which item was clicked with OnClickEvent.
I have little quiz game I've working on and am tracking correct answers. I
I have little knowledge on oracle. I tried to create a function like below.
I have been working on this for a while now and, unfortunately have little
I'm working on a little project with a few friends, and have set up
i have little bit of problem while working with External entity reference in External
I have little piece of javascript to show/hide divs based on which link is
I have little experience with using 3D models exported to .x files in DirectX.
I have little working knowledge of python. I know that there is something called
I have little problem with specifying my variable. I have a file with normal

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.