Re: Attachments ??
Re: Attachments ??
- Subject: Re: Attachments ??
- From: Matthew Ness <email@hidden>
- Date: Thu, 11 Feb 2016 09:04:48 +1100
Hi Ted,
We've had a very similar brief to yours in the past. What it came down
to for us was: How are you going to present the structure to the
client/customer? In-app, call outs, something else?
We've done all of the below in the past, for different and same clients:
1) multi-upload files in a flattened structure.
2) upload a directory-aware zip/tarball, with a task in the app that
unzips, walks the structure, stores each file and represents it in
persistence.
3) Client side application allows for drag and drop in
unix/Folder/AFP/SMB which pushes files to persistence and updates the
application. This holds the directory structure.
Each of them have their benefits and drawbacks.
With (2), as we are using AWS S3, we are able to push the file structure
into a bucket 'structure' and modify their ACLs such that the HTML is
callable (so long as it references files relatively). Other file storage
services can offer the same.
I guess it depends on how you are storing your files.
Lastly, we do direct-to-s3 uploads from user-agent, which is a load off
the app tier, but doesn't maintain structure (you cannot d'n'd folder
structures as mentioned earlier), and still requires manipulation after
successful upload if you are looking to apply a directory structure.
This was excellent for very large files, which hopefully you're not
dealing with for HTML5 banners :) So we had to build a component which
does a pre-flight for signatures and task creation, and post-flight for
task action. If you are going through the app, Konrad's suggestion of
zip upload then task would seem to be the quickest route.
Cheers,
Matt
On Thu, Feb 11, 2016, at 04:42 AM, Ramsey Gurley wrote:
> You could try ERDragAndDropUpload. It will handle multiple files. I don’t
> think it handles folders. It might? In certain browsers?
>
> It’s possibly a good starting point anyway :) If you can flatten your
> directory structure into a single directory of files, then it could work
> as is.
>
> On Feb 10, 2016, at 5:15 AM, Theodore Petrosky <email@hidden> wrote:
>
> > I have a little D2W app for proofing Flash advertising banners. Works great, but we know that Flash is dead or should be. I need to allow uploading and viewing of HTML5 banners.
> >
> > Flash was great because it was a single file. just upload it ad view it. No problem. HTML5 banners are a little different.
> >
> > I want to be able to select a folder and upload it. As is is important. In the top level folder is the index.html and then an images folder (containing images), a css folder, and a kaka folder because that was how the ad was set up.
> >
> > Is there a component that will do this?
> >
> > if you were to create this, do you think it would be better to select the folder, zip it up, upload the zip and then unzip it?
> >
> > I am flailing around here.
> >
> > Ted
_______________________________________________
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