Uploading files from DotNetNuke Custom Module

Apr 21, 2011 at 9:59 AM

We are trying to integrate the file uploader component in our website but the problem is, it does not work under DotNetNuke environment. It uploads the file but fails to show that on the folder. Based on my testing, it seems like it only happens FileReceivedEventArgs not passing any files or js script conflict with dotnetnuke js as below:

<script type="text/javascript" language="javascript">
        window.dnn_ctr553_ViewCT_fjxFileUploader_FileUploader1 = new Flajaxian.FileUploader2('dnn_ctr553_ViewCT_fjxFileUploader_FileUploader1');
        function dnn_ctr553_ViewCT_fjxFileUploader_FileUploader1_MarkInitialized(){ window.dnn_ctr553_ViewCT_fjxFileUploader_FileUploader1.markInitialized(); }
        function dnn_ctr553_ViewCT_fjxFileUploader_FileUploader1_SetFileList(list){ window.dnn_ctr553_ViewCT_fjxFileUploader_FileUploader1.setFileList(list); }
        function dnn_ctr553_ViewCT_fjxFileUploader_FileUploader1_SetUploadProgress(evt){ window.dnn_ctr553_ViewCT_fjxFileUploader_FileUploader1.setUploadProgress(evt); }
        function dnn_ctr553_ViewCT_fjxFileUploader_FileUploader1_SetChangedFileStates(list){ window.dnn_ctr553_ViewCT_fjxFileUploader_FileUploader1.setChangedFileStates(list); }
        function dnn_ctr553_ViewCT_fjxFileUploader_FileUploader1_LimitReached(type){ window.dnn_ctr553_ViewCT_fjxFileUploader_FileUploader1.limitReached(type); }
        function dnn_ctr553_ViewCT_fjxFileUploader_FileUploader1_ConfirmUpload(){ window.dnn_ctr553_ViewCT_fjxFileUploader_FileUploader1.confirmUpload(); }
        function dnn_ctr553_ViewCT_fjxFileUploader_FileUploader1_Dispose(){ window.dnn_ctr553_ViewCT_fjxFileUploader_FileUploader1.dispose(); }
        function dnn_ctr553_ViewCT_fjxFileUploader_FileUploader1_EmbedFlash(){
            var p = {menu:false,base:'.',scale:'noscale',bgcolor:'#FFFFFF',wmode:'transparent'};
            var a = {};
            var fv = {id:"dnn_ctr553_ViewCT_fjxFileUploader_FileUploader1",targetUrl:"http://localhost:49315/DNN511/Default.aspx?__ID=dnn_ctr553_ViewCT_fjxFileUploader_FileUploader1_(!AMP!)_",debug:true,enabled:true,isIE:Flajaxian.isIE(),clearListAtEnd:true,uploadRequiresJsConfirmation:true,initiallyInvisible:false,isSingleFileMode:false,maxFileSize:1072668082176,maxFileQueueSize:1072668082176,maxFileNumberLimit:2147483647};

            swfobject.embedSWF("/DNN511/WebResource.axd?d=S1dRzRQ5sLnKLHkyZb-MDnvWGXEYr1V3eZNTC3LkGDSHGLRa4Zlie0LcnZtZbR0Y9KayENpXhgO1H7IvasUyx9msFNPKXbqOE2N-Z50CSUoAGtY1Of_w5ScMI9UiC_3Mjyp2lh0e4hUx3TARoE6AJJ6E2ys1&t=634388897773111797", "dnn_ctr553_ViewCT_fjxFileUploader_FileUploader1", "251", "40", "9.0.0", "/DNN511/WebResource.axd?d=Pq8XVghhMpXe2CZdf906-ojwsonp-der-zs2DFobytqVDAo9__Dxy2CB2tAme4IuC8n5N19tbWSSg8sEj0Kvrjfm0DvKdBXg51puoF0hTmcc3AWxmWjQN_RQ2qKjENqxS7xmlZ71M3eX9Fw1dU9ai_eqiLY1&t=634388897773111797", fv, p, a);

            var fu = window.dnn_ctr553_ViewCT_fjxFileUploader_FileUploader1;
            fu.set_generateBaseHtmlFunc(Flajaxian.generateBaseHtml);
            fu.set_generateFileRowFunc(Flajaxian.generateFileRow);
            fu.set_disposeFileRowFunc(Flajaxian.disposeFileRow);
            fu.set_fileStateChangedFunc(FileStateChanged);
            fu.set_percentageChangedFunc(Flajaxian.percentageChangedFunc);
            fu.set_maxFileNumberReachedFunc(Flajaxian.maxFileNumberReached);
            fu.set_maxFileSizeReachedFunc(Flajaxian.maxFileSizeReached);
            fu.set_maxQueueSizeReachedFunc(Flajaxian.maxQueueSizeReached);
            fu.set_positionFilesListFunc(Flajaxian.positionFilesList);
            fu.set_renderFilesListFunc(Flajaxian.renderFilesList);

            fu.set_strings({maxFileNumberReached:'The maximum number of files allowed to be selected of \'2147483647\' has been reached.',maxFileSizeReached:'The maximum allowed file size of \'999GB\' has been exceeded.',maxQueueSizeReached:'The maximum allowed size of \'999GB\' for all the files in the queue has been exceeded.'});
            fu.set_openedArrowUrl("/DNN511/WebResource.axd?d=_p8Aj7H59rbnbpn7dZbOJjXzq8LfurDyOgz7nrC4zzaTlwuSM1v356oXnT_i4BcBoIdfY3ERgIJr43IpIRDAdcsmPF1AIIG3fg0TgeIeUesL0f_XYCF8QJ6LCb0TljgDQAMG4xmkMNlViS1l1uwy_m4LFZs1&t=634388897773111797");
            fu.set_closedArrowUrl("/DNN511/WebResource.axd?d=BW1Fc8Fy9tmZ1BDJU-VByoVMhVUO1Qf-EKIGgvY2xTY9Dcq1AsTcVznERbIFYu2Q3StWCLsKw8y3CGyq263YshOPxq-5oXPH4i8QhabKVfTucdJMeUkD3VZ08-RsjZbaaotMuRNezIvNV2j1fznT7gTfVcI1&t=634388897773111797");
            fu.set_closeBtnUrl("/DNN511/WebResource.axd?d=g_ALBPEkbAAZAjvtLQf_lMOCz4VdNsF7Sg-cXGpafeMccRoUEwVYN-r2Qxo-RcraaaZOp9H1HK-h3o4-3T2dBn1phi5CuzGIfKtR-EFFTKKg94UjmAW9RM15fpq_-ytLo5sA_HghgFtKtZs1_mmuPFi3Cjk1&t=634388897773111797");
            fu.set_flashWidth(251);
            fu.set_flashHeight(40);
            fu.set_uploadRequiresJsConfirmation(true);
            fu.set_clearListAtEnd(true);
            fu.addUploadPreProcessor(Flajaxian.requestAsPostBack);fu.initialize();
        }

        dnn_ctr553_ViewCT_fjxFileUploader_FileUploader1_EmbedFlash();
</script>

I have been looking into action-script files and other places but not sure how to get around this issue.

Do you guys know of any quick solution to this?

I would really appreciate your help.