In order for it to be saving where it's saving, RAILS_ROOT is probably
being specified in there somewhere. Remove that and add the directory
yourself to /home/user/public_html/upload or whatever it may be.
Be careful here. Expanding "~" depends on who is running the Rails
code and in production it often is either the user that runs the web
server or another "not real" user. (A good thing for security) So
you want to either put an absolute path OR put a path relative to
RAILS_ROOT if you can ensure that permissions will be OK.
Just remember that this may not work in Production.