MODIFIED: Move ecnodeFilename method to upload class and use unique id for encoding