I think this is not the way to handle the file upload with Servlet API 3.1 - we must wait on upgrading commons-fileupload to version supporting Jakarta API (btw. Tomcat is using it right now). I will try to help make this happen :)
Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ niedz., 1 sty 2023 o 10:38 Greg Huber <gregh3...@gmail.com> napisał(a): > > I rechecked tomcats work folder to see what the parts are, there are no > files with zero size, only the the hidden fields, submit button (Upload) > and the image. > > The two extra parts could be these as they have the name uploadedFiles > and match FieldName=uploadedFiles > > <div id="fileControl0" class="miscControl"> > <input name="uploadedFiles" type="file" size="95" > id="uploadFiles_uploadedFiles" multiple="multiple"> > </div> > <div id="fileControl1" class="miscControl"> > <input name="uploadedFiles" type="file" size="95" > id="uploadFiles_uploadedFiles" multiple="multiple"> > </div> > > > ###### > > > <form name="uploadFiles" id="uploadFiles" > action="/user/Resources.action" enctype="multipart/form-data" method="POST"> > <input name="check" type="hidden" value="prambn6tk6k7ekhfsnm8" > id="uploadFiles_check"> > <input name="pageNum" type="hidden" value="1" > id="uploadFiles_pageNum"> > <input name="path" type="hidden" value="test" > id="uploadFiles_path"> > <input name="type" type="hidden" value="favourites" > id="uploadFiles_type"> > <input name="rowSize" type="hidden" value="15" > id="uploadFiles_rowSize"> > <input name="resize" type="hidden" value="true" > id="uploadFiles_resize"> > <input name="overwrite" type="hidden" value="true" > id="uploadFiles_overwrite"> > <input type="hidden" name="selected" id="tabselect" value="tab_2"> > <div id="container"> > <table class="menuTabTable" cellspacing="0"> > <tbody> > <tr> > <td id="menu_1" class="menuTabUnselected"> > > <div class="menu-tr"> > <div class="menu-tl"> > <a id="tab_1" class="tab" > href="#tab1">Bulk > Upload</a> > </div> > </div> > </td> > <td class="menuTabSeparator"></td> > <td id="menu_2" class="menuTabSelected"> > <div class="menu-tr"> > <div class="menu-tl"> > <a id="tab_2" class="tab > selected" href="#tab2">Upload</a> > </div> > </div> > </td> > </tr> > </tbody> > </table> > <div id="panel_1" class="panel" style="width: 100%; overflow: auto; > display: none;"> > <br> > <span class="ga-upload-wrapper"> > Upload Files > <input id="fileupload" type="file" name="uploadedFiles" > multiple="multiple" title="Upload Files" class="ga-upload-button"> > </span> > <!-- The global progress bar --> > <div id="progress" class="ga-upload-progress" > style="width:80%;display:none;"> > <div class="ga-upload-progress-bar > ga-upload-progress-bar-success"></div> > </div> > <!-- The container for the uploaded files --> > <ul id="files" class="ga-upload-list" style="width:80%;"></ul> > </div> > <div id="panel_2" class="panel" style="width: 100%; overflow: auto;"> > <br> > <div id="fileControl0" class="miscControl"> > <input name="uploadedFiles" type="file" size="95" > id="uploadFiles_uploadedFiles" multiple="multiple"> > </div> > <div id="fileControl1" class="miscControl"> > <input name="uploadedFiles" type="file" size="95" > id="uploadFiles_uploadedFiles" multiple="multiple"> > </div> > <br> > <input name="action:resources!upload" type="submit" > value="Upload" id="uploadFiles_resources_upload"> > <input name="action:resources!cancel" type="submit" > value="Cancel" id="uploadFiles_resources_cancel"> > <br><br> > </div> > </div> > > </form> > > On 01/01/2023 08:32, Lukasz Lenart wrote: > > sob., 31 gru 2022 o 08:18 Greg Huber <gregh3...@gmail.com> napisał(a): > >> Seems there is more going on, as without it there are two extra parts > >> with no StoreLocation. > > "Without it" - what does that mean? > > > >> name=, StoreLocation=null, size=0 bytes, isFormField=false, > >> FieldName=uploadedFiles > >> > >> name=myimage.jpg, > >> StoreLocation=/home/dev/git/myapp/myapp/work/upload_0f8323e4_9dd9_4972_8305_6b7c31911f47_00000033.tmp, > >> size=1050531 bytes, isFormField=false, FieldName=uploadedFiles > >> > >> name=, StoreLocation=null, size=0 bytes, isFormField=false, > >> FieldName=uploadedFiles > > Could you share your html form? I would like to test locally what's > > going on. Maybe I should ignore files with 0 size > > https://stackoverflow.com/questions/2422468/how-can-i-upload-files-to-a-server-using-jsp-servlet/2424824#2424824 > > > > > > Regards > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org > For additional commands, e-mail: dev-h...@struts.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org