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 protected]>:
> 
> 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 protected] <mailto:[email protected]> 
> 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 protected]>:
>>> 
>>> Ah I see. Thanks.
>>> 
>>>> On Jun 2, 2015, at 7:45 PM, Ramsey Gurley <[email protected]> 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 protected]> 
>>>>>> 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 protected])
>>>>>>> Help/Unsubscribe/Update your Subscription:
>>>>>>> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
>>>>>>> 
>>>>>>> This email sent to [email protected]
>>>>>> 
>>>>> 
>>>> 
>>> 
>>> 
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list      ([email protected])
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/frelin%40timeoff.se
>>> 
>>> This email sent to [email protected]
>> 
>> 
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
>>  
>> <https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com>
>> 
>> This email sent to [email protected] <mailto:[email protected]>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to