---
title: "PHP & JQuery Photo Upload and Crop - DEMO"
author: "wangshaofei"
date: "2013-05-23T23:39:52Z"
tags: []
categories: ["编程语言"]
slug: "php-jquery-photo-upload-and-crop-demo"
draft: false
lastmod: "2013-05-27T09:59:06Z"
id: 1874413
url: "https://wsfei.iteye.com/blog/1874413"
---

1\. We will be using the session variable to hold the random file name (in our case the timestamp).  
We are now also storing the file extension that is passed through the script, to ensure we are dealing with the right type of image.