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

  • SEARCH
  • Home
  • 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 512183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:17:37+00:00 2026-05-13T07:17:37+00:00

I am trying to upload an image to a directory on a server. i’m

  • 0

I am trying to upload an image to a directory on a server. i’m using the tutorial found at http://www.reconn.us/content/view/30/51/.

First, is that a good method for uploading images using PHP?

Second, I’m also going to store the info in a MySQL database. What is a good way to deal with images that have the same name that the user uploads? For example, if a user uploads a file ‘test.png’ 2x in a row, what should happen to the second filename? From the script above, both will get a unique filename, but how would I as the user access that image again? I couldn’t just query because the only name I know was the duplicate name I gave it, and I definitely don’t know the unique name the server gave it using the upload time…

Third, what is a good max file size for images?

  • 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-05-13T07:17:38+00:00Added an answer on May 13, 2026 at 7:17 am

    You can report the unique URL back to the user after the upload so that the user will know where to find the image. So, the first test.png could be http://www.example.com/images/fjdklagjsdl.jpg and the second could be http://www.example.com/images/jklfsdlkj.jpg

    You can also provide some kind of interface for users to view images they’ve uploaded. If you display a thumbnail of the uploaded image next to the image’s unique filename, it will be easy for the user to identify which image is which.

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

Sidebar

Related Questions

I am trying to upload image file from my one server to another remote
Hi I am trying to upload image file using perl cgi-application. Not sure what
i am trying to upload a image to server from iPhone application PHP code
I'm trying to upload an image using this script: $photoName = $uploadedPhoto[name]; $photoType =
I'm trying to upload an image to my site through a form, however it's
I'm trying to upload documents to SharePoint using web services attaching custom metadata to
I am trying to select existing images from a directory. The image files are
I'm trying to upload image files. When uploading files of sizes of about 40
I am trying to upload multiple images using meioupload which works fine if I
I am trying to upload an image,create thumbnail but i get an error. Here

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.