radiant/radiant-sheets-extension — Issue #9: Uploading a file twice results in application error
Author: jomz
Created: 2011-10-13 13:16:11+00:00
State: open

When a file with the same name already exists, the user should be asked if they want to update the existing file, or use another name. It would also be nice to provide a way to force override; I want to be able to update js/css pages from outside the Radiant interface (push from a Serve project for example).

Processing ApplicationController#upload to html (for 78.22.100.216 at 2011-10-13 14:09:56) [POST] Parameters: {"commit"=>"Create Stylesheet", "format"=>"html", "upload"=>{"upload"=>#}, "action"=>"upload", "authenticity_token"=>"qmiPTF8kRm2JwVSPqM9oMnP985ylvfftcGOR2bSy0jo=", "controller"=>"admin/styles"}ActionView::MissingTemplate (Missing template admin/styles/upload.erb in view path vendor/bundle/ruby/1.8/gems/radiant-1.0.0.rc3/app/views:vendor/bundle/ruby/1.8/gems/radiant-ck_editor_filter-extension-0.2.3/app/views:vendor/bundle/ruby/1.8/gems/radiant-clipped-extension-1.0.10/app/views:vendor/bundle/ruby/1.8/gems/radiant-tags-extension-1.6.2/app/views:vendor/bundle/ruby/1.8/gems/radiant-sheets-extension-1.0.1/app/views:vendor/bundle/ruby/1.8/gems/radiant-reorder_children-extension-1.0.4/app/views:vendor/bundle/ruby/1.8/gems/radiant-predefined_parts-extension-1.1.0/app/views:vendor/bundle/ruby/1.8/gems/radiant-locked_page_parts-extension-0.1.9/app/views:vendor/bundle/ruby/1.8/gems/radiant-layouts-extension-1.1.3/app/views:vendor/bundle/ruby/1.8/gems/radiant-copy_move-extension-2.4.3/app/views): vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/paths.rb:74:in `find_template' vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1391:in `default_template' vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:942:in `render_without_benchmark' vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:51:in `render' vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:51:in `render' vendor/bundle/ruby/1.8/gems/radiant-1.0.0.rc3/app/controllers/admin/resource_controller.rb:31 vendor/bundle/ruby/1.8/gems/radiant-1.0.0.rc3/lib/radiant/resource_responses.rb:40:in `instance_eval' vendor/bundle/ruby/1.8/gems/radiant-1.0.0.rc3/lib/radiant/resource_responses.rb:40 vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:135:in `call' vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:135 vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:179:in `call' vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:179:in `respond' vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:173:in `each' vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:173:in `respond' vendor/bundle/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:107:in `respond_to' vendor/bundle/ruby/1.8/gems/radiant-1.0.0.rc3/lib/radiant/resource_responses.rb:18:in `response_for' vendor/bundle/ruby/1.8/gems/radiant-1.0.0.rc3/app/controllers/admin/resource_controller.rb:123:in `rescue_action'
...