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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:05:43+00:00 2026-05-16T16:05:43+00:00

I have been manipulating image files after uploading in the usual way like moving

  • 0

I have been manipulating image files after uploading in the usual way like moving the file from the /tmp folder to a preferred folder of the site.

Now i want to manipulate images by keeping them in the temp folder and once i have done with it then i want to move it to the preferred folder.

What i am trying to do is …

  1. Showing a very simple custom file upload dialog.
  2. Select an image and click upload.
  3. The form is submitted to an iframe so i can show a progressing bar.
  4. The php script will echo the javascript code which will call a parent window function from the iframe to notify that the image has been uploaded.
  5. I wanted to show another dialog which will display the image from the tmp folder so that the user can resize and crop.
  6. When the user selects a region on the image to crop i will send the coordinates to the server and will manipulate the image in the tmp folder.
  7. When the image manipulation has been done i want the final image to be moved to my target folder.

here are my doubts.

  1. How long will the temp image be there in the tmp folder.
  2. How do i display the image in the temp folder in my dialog box because i only have its physical path.
  3. I think i can do it like <img src='fetchfromtmp.php?filename>. isn’t it?
  4. and in the php script i can readfile the image like readfile(‘tmp/tmpfile’).

    So, finally, will manipulating from temp folder holds good?. will it be effective/suggestive?. What could be the complications? if any.

    I would like to have suggestions and alternatives for my idea.
    Thank you.

  • 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-16T16:05:44+00:00Added an answer on May 16, 2026 at 4:05 pm

    I don’t think you should use the temp folder like this, unfortunately, you will have to create your own (or use a database to store the images). The reasons are your point 1 & 2:

    1. An image is only guaranteed to stay in the temp folder until the script that uploaded it is finished running. This means that whatever script your form submits it to should move it somewhere safe
    2. Usually, this temp folder will be somewhere that isn’t visible to the user. You can hack something like you’ve suggested, but then you have to be very sure of what you’re doing to avoid creating any security leaks.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been looking for a way to download an image from a URL, preform
I have recently been copying and moving a large number of files (~400,000). I
have been searching for a mod operator in ios, just like the % in
Have have been trying to make a validator for my xml files. I have
I have been using the examples from this site ( http://dojotoolkit.org/documentation/tutorials/1.6/datagrid/ ) to render
I have been tasked with rendering and manipulating 3d objects in the browser and
I have been playing with image flood fill that I found here on Stack
So I have been playing around with the facebook like button but I have
I have an universal app that allows to select an image from the device
Have been following this fabulous tutorial . Being new to Javascript and functional programming,

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.