summaryrefslogtreecommitdiff
path: root/core/controllers/simple_uploader.php
AgeCommit message (Collapse)Author
2009-05-27Restructure things so that the application is now just another module.Bharat Mediratta
Kohana makes this type of transition fairly straightforward in that all controllers/helpers/etc are still located in the cascading filesystem without any extra effort, except that I've temporarily added a hack to force modules/gallery into the module path. Rename what's left of "core" to be "application" so that it conforms more closely to the Kohana standard (basically, just application/config/config.php which is the minimal thing that you need in the application directory) There's still considerable work left to be done here.
2009-05-14Beautify only the title, not the filenameBharat Mediratta
2009-05-13Gee it's May already. Update copyright to 2009.Bharat Mediratta
2009-05-13Create a new "add" permission and require it at the controller levelBharat Mediratta
when adding photos/movies/albums
2009-05-13Beautify the title of uploaded files. Convert underscores to spaces, ↵Bharat Mediratta
collapse multiple spaces, drop the extension. Fixes ticket #237
2009-05-08Don't rely on the file to have an extension (or better: don't throw anBharat Mediratta
error if we can't find one-- just assume its a photo).
2009-04-02Continuation of r20518. Remove all the cases were the csrf values inTim Almdal
views were being manually set. Also removed it from the Admin_View.
2009-03-27Add missing csrf value.Bharat Mediratta
2009-03-17Switch from using SimpleUploader to using swfUpload as our flash basedBharat Mediratta
uploader. This is modeled on http://codex.gallery2.org/Gallery3:Upload_UX but is not yet complete. Notes: * Changed #gProgressBar to .gProgressBar to support multiple progress bars on the same page * Added a bunch of CSS to the "needs a home" section in themes/default/css/screen.css
2009-03-09Don't forget to clean up temp files after uploading.Bharat Mediratta
Fixes ticket #120.
2009-03-04Implement batch support in a simple fashion to avoid having to change the ↵Bharat Mediratta
swf file for now
2009-03-04Redefine the batch API to be very very simple. You callBharat Mediratta
batch::start() before starting a series of events, and batch::stop() when you're done. In batch mode, the notification module will store up pending notifications. When the batch job is complete, it'll send a single digested email to each user for all of her notifications. Updated the scaffold and local_import to use this. Haven't modified SimpleUploader yet.
2009-03-03Refactored the batch Api: 1) created a small batch helper class:Tim Almdal
Starting a batch call batch::operation(name, item). In the case of adding photos name = add and item is the parent of the new items. When the operation is finished the batch::end_operation(name) is called. operation and end_operation events are called. Handlers (i.e. item_created) can call batch::in_progress(name) to determine if a batch is being processed.
2009-03-01Simplify the batch api by having the core event handlers forTim Almdal
start_batch and end_batch add and remove the batch id from the session. Modules wishing to do batch processing, just need to fire the start_batch and end_batch events. Other modules that need to be aware of batches (i.e. notifications) just check the session for "batch_id".
2009-02-28The scaffolding, simple_uploader and local_import now call two newTim Almdal
events: start_add_batch and end_add_batch. The parameter is a batch id which is generated on the first add request. The protocol is call the add_photo as many times as required and then call finish when done. Also renamed the add method in local_import to add_photo so it is consistent with simple_uploader
2009-02-25Add support MP4 movies also. Flowplayer supports them and can streamBharat Mediratta
them using the h264streaming plugin. Everything else is a fairly minor change.
2009-02-22Added t(...) around some display strings that were overlooked.Tim Almdal
2009-02-22Very basic movie support. You can upload a FLV file, we use ffmpeg toBharat Mediratta
extract a thumbnail out of it and if you click through we show it using flowplayer.
2009-02-18Add a 'finish' button which dismisses the dialog and refreshes the current pageBharat Mediratta
2009-02-18Urlencode the user agent, else it doesn't get passed through properly.Bharat Mediratta
This fixes the uploader on FF/Linux (and probably other platforms).
2009-02-17Add more localized stringsBharat Mediratta
2009-02-15Ignore the unique timestamp value that upload::save() prepends to temp ↵Bharat Mediratta
filenames.
2009-02-14Say hello to the new Flash based uploader, courtesy of Eric Zelermyer.Bharat Mediratta
This requires a little trickery to proxy the session id and user agent through the ActionScript code so that we can assume the same session in the uploader. It's also using its own path to add photos since we'll want to have a slightly different protocol for dealing with responses (as opposed to JSON or HTML). A work in progress for sure, but it's already better than what we had before.?\024