[Bugs] #901 URGE: browse should use a better name when uploading an entry from the journal

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Thu Sep 17 05:25:39 EDT 2009


#901: browse should use a better name when uploading an entry from the journal
----------------------------+-----------------------------------------------
    Reporter:  tomeu        |          Owner:  alsroot 
        Type:  defect       |         Status:  accepted
    Priority:  Urgent       |      Milestone:  0.86    
   Component:  Browse       |        Version:  0.84.x  
    Severity:  Major        |       Keywords:          
Distribution:  Unspecified  |   Status_field:  New     
----------------------------+-----------------------------------------------

Comment(by alsroot):

 As was mentioned above, one of issues is extension.

 So, it could be:
 * (already implemented) while downloading to Journal, keep full name(w/
 extension) as a 'title'
 * while uploading from Journal try to guess

 The major point of guessing
 * instead of just using 'title' as is, jobject could be generated by
 sugar(so, w/o any extensions)
 * instead of using mime_type extension, original(downloaded) file can have
 different extension e.g. .conf and not .txt)

 Guessing could be
 * if 'title' ends by mime_type extension, leave it as is
 * if 'title' doesn't end by '\.\S$', add mime_type extension

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/901#comment:11>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list