Ticket #440 (closed defect: duplicate)

Opened 11 months ago

Last modified 10 months ago

File Uploads error In the windows.

Reported by: zba..@126.com Assigned to:
Priority: major Milestone: The Future
Component: Merb Keywords:
Cc:

Description

I use the File Uploads, suggesting that "Permission denied" In the windows, may be due to the use of paper is not removed

  def upload
    puts params[:file].inspect
    FileUtils.mv params[:file][:tempfile].path, Merb.root+"/public/uploads/#{params[:file][:filename]}"
	redirect "/uploader"
  end

Change History

(follow-up: ↓ 2 ) 01/16/08 08:33:12 changed by zba..@126.com

  • status changed from new to closed.
  • resolution set to fixed.

Problems are solved.

add "body.close" in 441 line of the file(merb\lib\merb\request.rb)

As follows

438          else
439            data = body
440          end
441		  body.close
442          paramhsh = normalize_params(paramhsh,name,data)
443          break  if buf.empty? || content_length == -1
444        }
445        paramhsh
446      end

(in reply to: ↑ 1 ) 01/16/08 08:43:16 changed by zba..@126.com

  • status changed from closed to reopened.
  • resolution deleted.
  • milestone changed from The Future to 0.5.3.

Replying to zba..@126.com:

Problems are solved. add "body.close" in 441 line of the file(merb\lib\merb\request.rb) As follows {{{ 438 else 439 data = body 440 end 441 body.close 442 paramhsh = normalize_params(paramhsh,name,data)

443 break if buf.empty? content_length == -1 444 } 445 paramhsh 446 end }}}

01/28/08 14:41:01 changed by iv..@gweezlebur.com

  • milestone changed from 0.5.3 to The Future.

02/11/08 13:03:11 changed by shayarne..@gmail.com

  • status changed from reopened to closed.
  • resolution set to duplicate.