I am having trouble with file upload and GAE. I know Alan had
commented that the issue was fixed in another post so I assume it is
something I am doing wrong. Any help is much appreciated.
index.cfm
<cfif IsDefined('form.uploadSubmit')>
<cfif not DirectoryExists(ExpandPath('photos'))>
<cfdirectory action="create" directory="photos" />
</cfif>
<cffile action="upload" destination="photos" filefield="uploadFile" /
>
DONE!
</cfif>
<form action="index.cfm" method="post" enctype="multipart/form-data">
<input type="file" name="uploadFile" id="uploadFile" />
<input type="submit" value="Upload" name="uploadSubmit"
id="uploadSubmit" />
</form>
web.xml (partial)
<servlet>
<servlet-name>gaevfs</servlet-name>
<servlet-class>com.newatlanta.appengine.servlet.GaeVfsServlet</
servlet-class>
<init-param>
<param-name>dirListingAllowed</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>initDirs</param-name>
<param-value></param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>gaevfs</servlet-name>
<url-pattern>/photos/*</url-pattern>
</servlet-mapping>
Error:
An error has occurred while attempting to process the incoming
multipart/form-data stream: java.lang.NullPointerException
--
official tag/function reference: http://openbd.org/manual/
mailing list - http://groups.google.com/group/openbd?hl=en