replace a []byte{} with nil
Clean the src upload path properly

cbugg: close bug-848