ikiwiki/doc/todo/fileupload/soc-proposal/discussion.mdwn

21 lines
2.1 KiB
Plaintext
Raw Normal View History

2007-04-22 22:25:25 +02:00
There's nothing in [[fileupload]] that suggests putting the file upload limit in the body of a page. That would indeed be a strange choice. Ikiwiki already uses [[PageSpecs|PageSpec]] in the Preferences page (for specifying locked pages, banned users, and subscriptions), and I had envisioned putting the file upload controls there, and possibly subsuming some of those other controls into them.
2007-04-22 22:24:44 +02:00
> Thanks for clarifying; I clearly misunderstood the original text. -- Ben
2007-04-22 22:33:10 +02:00
2007-04-22 22:25:54 +02:00
It's not clear to me that the concept of attaching files to a page fits ikiwiki very well; unlike most wikis, ikiwiki supports subdirectories and [[SubPages|SubPage]], which allows for hierarchical placement of uploaded files, which is a much more flexible concept than simple attachment. Futhermore, the idea of listing all attached files at the bottom of a page seems somewhat inflexible. What if I want to make a podcast, using inline's existing support for that -- I won't want a list of every "attached" file at the bottom of my podcast's page then.
2007-04-22 22:24:44 +02:00
2007-04-22 22:33:10 +02:00
> If a file was attached to _some-dir/some-page_, it would be stored in _some-dir/_ and linked from _some-page_. That would seem reasonably hierarchical to me. What do you suggest as an alternative?
2007-04-22 22:37:01 +02:00
>> I'd suggest `some-dir/some-page/file`, which nicely makes clear that the file is "attached" to some-page, allows easy wikilinks to "file" from some-page, and has other nice properties.
>>> So _some-dir/some-page_ would feature an upload form that stored its payload in _some-dir/some-page/file_? IOW, we'd still be attaching files, but making the relationship between attacher and attached more explicit? --Ben
> As for the attachment list, I envisaged that being optional. --Ben
2007-04-22 22:33:10 +02:00
2007-04-22 22:37:01 +02:00
>> So some kind of preprocessor directive that is added to a page to generate the attachment list?
>>> Absolutely.
2007-04-22 22:24:44 +02:00
I don't understand why the file size would need to be stored in the index file; this information is available by statting the file, surely? Similarly, the mime type can be determined through inspection, unless there turns out to be a reason to need to cache it for speed.
--[[Joey]]