On Dec 2, 2006, at 11:34 PM, merb-devel at rubyforge.org wrote:
> I tried the upload feature in merb 0.0.7 using http://localhost: 
> 4000/files
>
> I get the following:
>
> Permission denied - D:/Temp/Merb.5172.0 or
> E:/Dev/Ruby/merb-0.0.7/examples/sample_app/dist/public/files/ 
> foobar.jpg
> - (Errno::EACCES) C:/Ruby/lib/ruby/1.8/fileutils.rb:501:in
`rename''
> C:/Ruby/lib/ruby/1.8/fileutils.rb:501:in `mv''
> C:/Ruby/lib/ruby/1.8/fileutils.rb:1379:in `fu_each_src_dest''
> C:/Ruby/lib/ruby/1.8/fileutils.rb:1395:in `fu_each_src_dest0''
> C:/Ruby/lib/ruby/1.8/fileutils.rb:1377:in `fu_each_src_dest''
> C:/Ruby/lib/ruby/1.8/fileutils.rb:490:in `mv''
> E:/Dev/Ruby/merb-0.0.7/examples/sample_app/dist/app/controllers/ 
> files.rb:15:in
> `upload''
>
>
> Is the upload feature compatible with Unix only?
>
> Thanks,
>
> Ed
	I think it should work fine on windows. It just uses a tmp file and  
FileUtils.mv to move the file where you want it to go. I have not  
tried on windows but it looks like you don''t have permissions to  
write into the file upload folder. I know nothing about windows.  Is  
there some permissions you need to set in windows? It should work.  
The only thing that may not work on windows is the daemonize option  
and the cluster option. They both use fork. It may be possible to get  
those to work on windows as well, once Luis figures out all the  
windos mongrel stuff.
Cheers-
-- Ezra Zygmuntowicz 
-- Lead Rails Evangelist
-- ez at engineyard.com
-- Engine Yard, Serious Rails Hosting
-- (866) 518-YARD (9273)