5102 Posts in 1520 Topics by 1116 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 967 Views |
-
Upload and process file in admin interface

16 June 2010 at 2:49am
Hi!
I need to upload a file in the admin interface and process it afterwards, without saving it. It's a XML file that contains some fields to create new DataObjects. Ok, so I'll need a FileField in my getCMSFields(), but how do I tell it to call a given method of my Page to process the file there?
In addition, I'll need a way to display some feedback - whether the file has been imported successfully or there have been some errors.
Thanks!
craesh -
Re: Upload and process file in admin interface

18 June 2010 at 1:58am
Since there haven't been any comments y will talk about my current approach:
I've found the "creating a module" tutorial and have started my work based on it. I've added a button "upload new xml file" to the left panel that leads me to a form to upload a new file - ok, it should, I'm currently facing a "javascript parsing error". It seams to be more convenient to have the upload form in a separate module rather than in a Page object and doing the processing in the onBeforeWrite method.
Greetings
craesh
| 967 Views | ||
|
Page:
1
|
Go to Top |

