PDA

View Full Version : File Upload



captainm1uk
24 Sep 2007, 1:54 AM
Hi

Is there a file upload control for ext ? if so where is it

Thanks

galdaka
24 Sep 2007, 5:22 AM
Sorry for my English,

I think domino web based application have two requirements:

1) Dialog based uploaded file manager. http://extjs.com/forum/showthread.php?p=57349#post57349

2) Non-Dialog (In Form or other container) based uploader.

Bun he himself component. like this:


var up1 = new Ext.ux.form.Uploader([container], [options])

If container is empty, the uploader it

becomcs
24 Sep 2007, 5:36 AM
I din't think so.

I take the opportunity of this thread to extend it.
Objectivs are :

List file attachement functional requirement.
Provide use cases to manage File Attachement in web apps


Personaly my requirement is

Attache many files in the same document but in many sections.
Attachements can't be detached on a hard drive by the server.
Attachements should'nt be managed against server perfs.


Actualy, my headache push me to try to manage attachement in a specifique form in an other database. But I don't start to code it. Have you some XP return about this kind of management?

galdaka
24 Sep 2007, 9:03 AM
Attache many files in the same document but in many sections.


new Ext.ux.form.Uploader(container1, [options])
new Ext.ux.form.Uploader(container2, [options])
...

The unique key for each attachment control may be the ID of the document + specific literal like: "section01".


new Ext.ux.form.uploader(key, [container], [options])

In options you can specify external database for storage the attachments for example.
Or you can specify "url" (Agent) that returns XML for print the interface.


I think that is important minimize "Domino Code".It

captainm1uk
24 Sep 2007, 1:36 PM
Erm - i am completely lost now - can someone give me some working example code to work with
Cheers

galdaka
24 Sep 2007, 10:11 PM
Erm - i am completely lost now - can someone give me some working example code to work with
Cheers

Is no code, only a idea for a hipotetical future proyect.

Posibilities:


new Ext.ux.form.Uploader(@Text(@DocumentUniqueID)) + 'section01', container, url, [options]);

If container is empty, the component only print a "button" for open the dialog to manage attachment

captainm1uk
25 Sep 2007, 1:09 AM
Sorry mate still lost - but great idea - I am not fully ok with ext yet. Still trying to get my head round it but the stuff looks great. I am currently putting some stuf into my web apps slowly but surely. At present I am putting a domino file upload control on my form but but for some reason it won't show - I am using the ext simple form layout and have put it in there - any ideas ?

Thanks

captainm1uk
27 Sep 2007, 2:19 AM
Hi

Can someone please give me a working example of file upload and how it is implemented

Thanks

mdm-adph
1 Oct 2007, 8:49 AM
I assume you're using Domino -- what's wrong with the default file upload control?

captainm1uk
1 Oct 2007, 11:15 AM
nothing but for some reason it doesn't show up when i put it inside ext - ie on a simple form

galdaka
13 May 2009, 10:19 AM
Example: http://www.jadacosta.es/contents/screencast/capture2.swf

I explain coming soon!! I have no time.



new Ext.ux.Domino.AnexManager({
pathAnex: 'dev/gfi/anex.nsf',
id: 'anex01',
documentID: '<Computed Value>',
loaderPath: '<Computed Value>',
renderTo: 'projectAnex01',
addCls: Ext.ux.iconMgr.getIcon('<Computed Value>', 'add'),
deleteCls: Ext.ux.iconMgr.getIcon('<Computed Value>', 'delete'),
windowMode: true,
editable: <Computed Value>,
bbarPlugins: [
new Ext.ux.grid.PageSizer({initialSize: 10}),
new Ext.ux.SlidingPager()
],
columnConfig: [
{header: 'Nombre', dataIndex: 'name', renderer: function(data){return unescape(data)}},
{header: 'Tamaño', dataIndex: 'formatSize', renderer: function(data){return unescape(data)}},
{header: 'Fecha creación', dataIndex: 'creationDate', renderer: function(data){return unescape(data)}}
]
});



Greetings,

mdm-adph
18 May 2009, 6:58 AM
I'm also working on a wee bit of code for File Uploads. ;)

Curious to see what you've been working on, too.

galdaka
20 Aug 2009, 4:29 AM
File Upload working: http://www.jadacosta.es/contents/screencast/capture4.swf

chiphi13
30 Sep 2009, 12:53 PM
Where can we get a copy of the file upload component?

cerad
30 Sep 2009, 4:36 PM
Where can we get a copy of the file upload component?

http://www.extjs.com/deploy/dev/examples/form/file-upload.html

galdaka
30 Sep 2009, 11:20 PM
File Upload working: http://www.jadacosta.es/contents/screencast/capture4.swf

If you want a Domino File upload like this, please contact me.

Greetings,

vajra
15 Oct 2009, 7:20 AM
Dear Gadalka,

Your Domino file upload control looks great. I am sure you have done lots of tricks to get this working in Domino. I would love it if you would send me copy of it so I could see how it works.

Thanks in advance,

Eli

:D