Solved

upload images

Posted on 2012-04-06
2
268 Views
Last Modified: 2012-06-11
Hello I have been using php and imagemagick to upload images and have been successful with it.   However I would like to make my users experience better and use an ajax call to upload them to the form before submitting.  I have seen some examples out there but I do not understand a couple of things.  If I upload an image to a file and for some reason the user decides to not submit their form then I have an image in a folder that is not tied to a database record. I do not really want the code I just want to know what steps are being used to get it done. Thanks  Any suggestions would be appreciated.
0
Comment
Question by:Luey
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
designatedinitializer earned 500 total points
ID: 37818019
I have had the same doubts/questions myself.
I solved that problem (and a couple of others at the same time) by writing a script that runs some janitor functions.
From time to time, it searches the uploads directory for images that are not in the database.
It also checks for duplicate files, running a filename check plus a bit-by-bit check.
This keeps the site lean and clean.
0
 

Author Comment

by:Luey
ID: 37818033
I had those same thoughts and I guess I can go there if need be.  I will let this post ride for a day to see if anyone has any other cool solutions if not you win. Thanks.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question