html
<form action="/" method="post">
<input id="uploader" name="uploader" type="file" />
</form>
<script>
$('form').append('<input type="hidden" name="user" value="<%= @user.id %>" />');
</script>
sinatra
post '/create/?' do
params[:user]
end