Aurigma Forums
»
Upload Suite
»
FAQ – HTML5/Flash Uploader
»
HOWTO: Using Image Uploader Flash with Java servlets
Rank: Advanced Member
Groups: Member
Joined: 6/16/2009(UTC) Posts: 134
Was thanked: 8 time(s) in 8 post(s)
|
Hello! In this post I want to share the demo of the using Aurigma Image Uploader Flash with Java servlets. There is one annoying problem in the Flash platform, that we normally can't send more then one file in one request. That is why if you send original image with thumbnails you need to do an additional job on the server-side to process such requests. We created a helper library which preprocess and fix request. To use the library you need to register the UploadFilter in the web.xml file: Code:<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<filter>
<description>Fix Aurigma Image Uploader Flash request</description>
<filter-name>UploadFilter</filter-name>
<filter-class>com.aurigma.imageuploaderflash.UploadFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>UploadFilter</filter-name>
<url-pattern>/upload.jsp</url-pattern>
</filter-mapping>
...
</web-app>
Then add upload-filter.jar into your web application. That's all! Now you can use any library to handle uploaded files. In this example we use commons-fileupload which you can find in the Third-Party directory of the attached archive. Edited by moderator Monday, November 22, 2010 1:00:38 AM(UTC)
| Reason: Not specified |
|
|
|
|
Aurigma Forums
»
Upload Suite
»
FAQ – HTML5/Flash Uploader
»
HOWTO: Using Image Uploader Flash with Java servlets
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.