资源简介

PHP+jQuery带进度条和删除的异步多文件上传插件 经过测试可用,界面友好,很容易修改。 可媲美flash上传。 可同时上传多个图片。

资源截图

代码片段和文件信息

# -*- coding: utf-8 -*-
#
# jQuery File Upload Plugin GAE Example 1.1.3
# https://github.com/blueimp/jQuery-File-Upload
#
# Copyright 2010 Sebastian Tschan
# https://blueimp.net
#
# Licensed under the MIT license:
# http://creativecommons.org/licenses/MIT/
#

from __future__ import with_statement
from google.appengine.api import files images
from google.appengine.ext import blobstore deferred
from google.appengine.ext.webapp import blobstore_handlers
import json re urllib webapp2

WEBSITE = ‘http://blueimp.github.com/jQuery-File-Upload/‘
MIN_FILE_SIZE = 1 # bytes
MAX_FILE_SIZE = 5000000 # bytes
IMAGE_TYPES = re.compile(‘image/(gif|p?jpeg|(x-)?png)‘)
ACCEPT_FILE_TYPES = IMAGE_TYPES
THUMBNAIL_MODIFICATOR = ‘=s80‘ # max width / height
EXPIRATION_TIME = 300 # seconds

def cleanup(blob_ke

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\
     文件          16  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\.gitignore
     文件        3991  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\README.md
     文件        3581  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\README.txt
     文件        2660  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\application.js
     目录           0  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\gae\
     文件         280  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\gae\app.yaml
     文件        4950  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\gae\main.py
     目录           0  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\gae\static\
     文件        1150  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\gae\static\favicon.ico
     文件        1600  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\gae\static\postmessage.html
     文件          24  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\gae\static\robots.txt
     文件        8375  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\index.html
     文件        1604  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\jquery.fileupload-ui.css
     文件       27140  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\jquery.fileupload-ui.js
     文件       36908  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\jquery.fileupload.js
     文件        7498  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\jquery.iframe-transport.js
     文件        3749  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\jquery.postmessage-transport.js
     文件        2924  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\jquery.xdr-transport.js
     文件        3323  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\pbar-ani.gif
     目录           0  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\php\
     目录           0  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\php\files\
     文件         103  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\php\files\.htaccess
     文件       13952  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\php\index.php
     目录           0  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\php\thumbnails\
     文件           0  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\php\thumbnails\.htaccess
     文件         506  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\result.html
     文件         617  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\style.css
     目录           0  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\tests\
     文件        4949  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\tests\index.html
     文件       35958  2011-11-21 07:24  blueimp-jQuery-File-Upload-edb4036\tests\tests.js
............此处省略0个文件信息

评论

共有 条评论