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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:24:52+00:00 2026-06-18T09:24:52+00:00

How to upload high resolution image to folder using gd library or any method?

  • 0

How to upload high resolution image to folder using gd library or any method? Any help appreciated.

    mkdir("../Connectors/upload_images/$album_name/");

    $file_tmpname=$_FILES['is_albimg']['tmp_name'];

    $file_name=$_FILES['is_albimg']['name'];

    $file_nm=explode('.',$file_name);

    //print_r($file_nm); die();

    $fname2=$file_nm[0].time().".".$file_nm[1];

    $hash = hash('md5', $fname2);

    $fname = $hash.".".$file_nm[1];

                $up='../Connectors/upload_images/'.$album_name.'/'.$fname;

    //echo $up; die();

    move_uploaded_file($file_tmpname,$up) or die();
  • 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-18T09:24:53+00:00Added an answer on June 18, 2026 at 9:24 am

    The PHP upload processing does not know anything about imges, much less about resolution. It just handles files.

    If you want to create a scaled-down preview from an uploaded image (I gues that’s what you want; your actual question is less than clear), get yourself familiar with GD, and create the image.

    Check the docs: http://php.net/manual/en/book.image.php

    Specifically, imagecopyresampled().

    Please note that the code sample posted here contains grave security issues; I hope that is just an example and not production code. Check out the PHP manual on handling uploaded files here: http://www.php.net/manual/en/features.file-upload.php

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

Sidebar

Related Questions

I upload image files using aspupload component. I was wondering if its possible to
I upload a file using adobe air HTTPService.Send method by passing byte array of
I am doing a web project on media manager. I upload high resolution images
I'm using App Engine's high performance image serving on my site, and I'm able
I have a form (using MVC2) which has an image-upload script, but the rules
Wondering if anybody knows where I can find any high resolution pictures for iPhone,
I'm using Amazon's provided High-Level API to upload files to Amazon S3. I use
I have created a game where the user can upload their high score and
I upload my app to app store, I already build my apps using device
To upload a file using inputType: 'file' , and for a form prescribed fileUpload:

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.