I''m trying to do a simple file (image) upload and I''m running
into
trouble with permission to upload the file
System: XP
User staus: local admin
Rails env: Instant rails w/Mongrel (vanilla setup)
local site www.sgm.com (host file setup
local port 3010
apache modifed to proxy (per instant rails setup)
I''ve added a directory called "media" under the public
directory in my
application
in my npicture.rb
...
File.open("#{RAILS_ROOT}/public/media/#{@filename}",
"wb") do |f|
f.write(@temp_file.read)
end
...
When I run this I get
Permission denied - C:/InstantRails/rails_apps/SGM/public/media/
When I look at file/folder properties the attributes are set to
read-only and the system does not respect a change to that check box and
I''ve set all users on the system to have full controll of the
InstantRails directory and all subdirectories - still shows read only)
Could there be some tweaking necessary to the apache config (perhaps a
Directory element in the VirtualHost element) for the site which is more
then just the vanilla?
I usually develop on OSX but I''m stuck and a win box for the next
couple
of weeks. Part of me wants to just say "stupid windows" and just wait
until I can get back to my Mac....
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---