If File.Exists(File.DirApp & Main.DirectorySeparator & "IMPORTS", Filename) = True Then File.Delete(File.DirApp & Main.DirectorySeparator & "IMPORTS", oCompany.UID &"_"& Filename) ' Delete any file there with the same name ' UploadFileResult.SetCSS("color", "black")ĭim Filename As String = File.GetName(filePart.SubmittedFilename) ' UploadFileResult.SetText("File uploaded successfully: " & filePart.SubmittedFilename & " size = " & NumberFormat(File.Size("", filePart.TempFile) / 1000, 0, 0) & "kb") Ws.Session.SetAttribute("fileImportStatus", "File uploaded successfully: " & filePart.SubmittedFilename & " size = " & NumberFormat(File.Size("", filePart.TempFile) / 1000, 0, 0) & "kb") Log("wsDataFileImport.FileUploaded: " & parts)ĭim filePart As Part = parts.Get("fileImport") ![]() Resp.SendError(500, LastException.Message) Log("haFileHelper - Catch Error: " & LastException.Message)ĬallSubDelayed2(callback, "FileError", LastException.Message) ' resp.SendRedirect("datafileimport.html") Check destIndex And length, And the Array's lower bounds.ĬallSubDelayed2(callback, "FileUploaded", data) 'Log("Callback: " & callback) ' GIVES THIS ERROR WHICH CRASHES THE DEBUGGER An error occurred. 'get the callback module from the session (multiple modules can use this handler)ĭim callback As Object = ("file_upload_sender")ĭim redirectto As String = ("file_upload_sender_redirectto") Sub Download (req As ServletRequest, resp As ServletResponse)ĭim data As Map = req.GetMultipartData(Main.TempDir, 100000000) ' 100 mb is a bit overkill, but the server and desktop app are in the 10's of mbs now Log("Req: " & req.ContentType &", "& req.ContentLength) Sub Handle(req As ServletRequest, resp As ServletResponse) His response took a couple of days, but was very helpful.' Helps with the uploading of Data Files for importing I contacted the developer during the process of using the graphical features he's added. I've now added this app to my list of indispensable utilities. Once I figured out Dropzone could help me out, I had my first action done in 10 minutes. I tried to do it with Apple's Automator which kept me running in circles. In no way is this app isn't going to replace the need for full-featured development on the Mac, but if all you want to do is something like "adding custom timestamps to a filename", it's hard to beat Dropzone. Intuitive interface (at least, when compared to using Python by itself) While I don't need this app to create and use Python scripts, life is just easier with it. This app lets you easily create custom drop actions using Python or Ruby. What a great app! I'd purchased this as part of a bundle and thought it was another dock or dragstrip. So you can help us make Dropzone even better! Not only that, but all the code for the destinations above is open source.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |