                         name: dest_fname
                         path: dest_path
                         type: property_tmp.type
-                        origname: property_tmp.name
+                        origname: property_tmp.name.replace(/.*\//,"") #TODO: check how sometimes name has also path information
                     cb null
 
-    # run file move operations 
+    # run file move operations
     async.series movefiles_func_arr, (err) ->
         return move_files_cb? err, null if err?
 

        # verify content type (multipart)
        contentType = req.headers['content-type']
        if not (contentType? && contentType.match(/multipart/i))
            return res.send {"ok":"0","errors":"bad content-type header, expected multipart"}   

        # TODO: check if custom form options are needed e.g.
        # req.form.uploadDir = basedir + "/tmp"

        req.form.complete (err, fields, files) ->
            return res.send {"ok":"0","errors":err} if err? #form parsing/upload error
                
            #validate data (TODO: make async when needed, currently no IO operations)
            err = []
            err = err.concat validate_crashreport_fields(fields)

            if property.path?

                #create destination filename and path
                dest_fname = fileid + "_" + property.name.replace(/.*\//,"") #TODO: check how sometimes name has also path information
                dest_path  = dest_dir + "/" + dest_fname
                #console.log "moving file: " + property.path + " to: " + dest_path #debug

