Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

upload images

Posted on 2012-04-06
2
Medium Priority
?
277 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 1500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

604 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