\AjaxFileField
Ajax File Field - based on Valums file uploader
Similar to FileIFrameField, except it allows XHR uploads via the file-uploader javascript.
Synopsis
class AjaxFileField
extends FileField
{
- // members
- private static array $allowed_actions = ;
- protected $buttonClasses;
- protected $sessionstoreid;
- // methods
- public void __construct()
- public void addButtonClass()
- public void setConfig()
- public void setSessionStoreId()
- public void Field()
- public void save()
- public void returnJSON()
- public void saveXHR()
Hierarchy
Extends
- FileField
Tasks
Line | Task |
---|---|
146 | temp - make a subclass, or handle image uploads |
166 | record linking |
188+ | : performance handling - see http://lenss.nl/2010/09/drag-drop-uploads-with-xmlhttprequest2-and-php-revised/ |
189 | use base_convert(uniqid(),10,36) to add uniqueness to each file |
193 | throwing an error message would help here |
Members
private
- $allowed_actions
protected
- $sessionstoreid
Methods
public
- __construct()
- Field()
- addButtonClass()
- returnJSON()
- save() — Saves uplaoded image into file.
- saveXHR() — Save XmlHttpRequest (ajax) submitted image into new file.
- setConfig() — Set or override specific configs see thirdparty/valums/reademe.md
- setSessionStoreId()