plugins/ticket/lib/upload.rb in rsence-2.0.0.10.pre vs plugins/ticket/lib/upload.rb in rsence-2.0.0.11
- old
+ new
@@ -1,16 +1,23 @@
-#--
## RSence
# Copyright 2008 Riassence Inc.
# http://riassence.com/
#
# You should have received a copy of the GNU General Public License along
# with this software package. If not, contact licensing@riassence.com
##
- #++
+
+require 'sequel'
+
+# @private Inner workings of Ticket
+module TicketService
+
+# @private Inner workings of Ticket
+module Upload
+
=begin
Handles uploads by using tickets and other filters.
Upload success states:
@@ -39,15 +46,9 @@
file_size int not null default 0,
file_mime varchar(255) not null default 'text/plain',
file_data mediumblob
)
=end
-
-require 'sequel'
-
-module TicketService
-module Upload
-
def upload(request,response)
ticket_id = req.unparsed_uri.match(/^#{::RSence.config[:broker_urls][:u]}(.*)$/)[1]
value_id = request.query['value_id']