Re: ERDragAndDropUpload
Re: ERDragAndDropUpload
- Subject: Re: ERDragAndDropUpload
- From: email@hidden
- Date: Fri, 08 Jul 2016 14:25:48 +0200
The easiest method I found was to introduce a 1000 ms delay with the binding:
completeAllFunction = "function f() {setTimeout(documentsUpdate, 1000);}”
The best solution would be to let the server update, when all documents are received. Perhaps with a containerUpdate binding in ERDragAndDropUpload.
Anyone?
/Fredrik
> 5 juli 2016 kl. 23:41 skrev email@hidden:
>
> Hi Ramsey,
>
> The attachments are not saved, but I want to do an Ajax update of a container with the uploaded attachments. It seems the objects hasn’t been inserted in the EC when the call from completeAllFuntion is called.
>
> I just realized it might be better to collect the attachments in a separate array, and display that. I will test that! A little hacky though...
>
> Nice component BTW!
>
> /Fredrik
>
>> 5 juli 2016 kl. 19:50 skrev Ramsey Gurley <email@hidden>:
>>
>> The ERDragAndDropUpload does nothing to save EOs by design. If you are fetching the EOs to display, maybe try ERXFetchSpec with includeEditingContextChanges() == true?
>>
>> On Jul 4, 2016, at 8:13 AM, email@hidden wrote:
>>
>>> Hi,
>>>
>>> Does anyone have a good solution to updating a container with uploaded files with ERDragAndDropUpload?
>>>
>>> There is a completeAllFunction you can bind to, but if I do a container update with that, then all files will not show. They do not seem ready yet.
>>>
>>> Is there a way to not do the update until all files are processed on the server?
>>>
>>> Regards
>>> Fredrik Lindgren
>>>
>>>
>>>> 3 juni 2015 kl. 01:51 skrev Kevin Hinkson <email@hidden>:
>>>>
>>>> Ah I see. Thanks.
>>>>
>>>>> On Jun 2, 2015, at 7:45 PM, Ramsey Gurley <email@hidden> wrote:
>>>>>
>>>>> Oh, yeah, I did add a per file progress bar in there too... It's been so long since I wrote/used it myself :)
>>>>>
>>>>> It's in the WebServerResrouces/js/dndupload.js
>>>>>
>>>>> It's just a div with a class (uploadProgress) so you should be able to style it as you like. Looks something like
>>>>>
>>>>> <div class="uploadProgress">
>>>>> <span>File Name</span>
>>>>> <progress>x%</progress>
>>>>> </div>
>>>>>
>>>>> On Jun 2, 2015, at 4:13 PM, Kevin Hinkson wrote:
>>>>>
>>>>>> Hey Ramsey,
>>>>>>
>>>>>> Thanks for the reply. I do see a progress bar when I upload files. I obviously don’t know much about how this component works but from your response I would guess that might be something Safari is doing.
>>>>>>
>>>>>> Thanks for the info. I’ll dig more into it and see what I can do.
>>>>>>
>>>>>>> On Jun 2, 2015, at 6:42 PM, Ramsey Gurley <email@hidden> wrote:
>>>>>>>
>>>>>>> Just the javadocs on the class and the .api file. I wrote that for fun to demonstrate it is possible with ERAttachment. I'm using it in the backend here at work though.
>>>>>>>
>>>>>>> It's really basic. Just wrap it around whatever you want to be a drop target. There's no progress bar although there is a callback for each file uploaded and one callback when all files are uploaded. You could sorta build a progress bar from that I suppose.
>>>>>>>
>>>>>>>
>>>>>>> On Jun 2, 2015, at 2:08 PM, Kevin Hinkson wrote:
>>>>>>>
>>>>>>>> Hi all,
>>>>>>>> Is there any documentation for ERDragAndDropUpload? I’ve managed to get it working when I have a div target and I can upload attachments and trigger an action when the upload succeeds. But I am at a loss as to what I can do wrt styling the html and progress bars with css, handling multiple uploads and error handling.
>>>>>>>>
>>>>>>>> Thanks.
>>>>>>>> _______________________________________________
>>>>>>>> Do not post admin requests to the list. They will be ignored.
>>>>>>>> Webobjects-dev mailing list (email@hidden)
>>>>>>>> Help/Unsubscribe/Update your Subscription:
>>>>>>>>
>>>>>>>> This email sent to email@hidden
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Do not post admin requests to the list. They will be ignored.
>>>> Webobjects-dev mailing list (email@hidden)
>>>> Help/Unsubscribe/Update your Subscription:
>>>>
>>>> This email sent to email@hidden
>>>
>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list (email@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to email@hidden
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden