https://bugzilla.wikimedia.org/show_bug.cgi?id=32426

--- Comment #2 from [email protected] 2011-11-15 05:26:53 UTC ---
Right, but it doesn't check for existing semantic data. If the user proceeds
with the upload despite the warnings, it will result in changing semantic data.
The user gets nothing to indicate that's what will happen. If they leave the
form blank, for example, it blanks the file's semantic data. Even with an
adequate warning, it's unlikely that the user would both understand what it
means, and decide not to do it. It's possible they're just playing with the
form and want to see what it does (which is how I discovered the problem). 

Ideally it should be possible for me to configure things to warn the user, and
maybe prevent an edit from being made from an upload. At this point, I'm not
sure many people are aware of the distinction between a Semantic Form being
used for upload and the same Semantic Form being used to edit a previous
upload. It's not documented yet, as far as I know.

I've had to get a bit creative in setting the form up to detect whether it's
being used to upload or edit. I suppose that could be improved in future
feature enhancements, but until then, I'm thinking about this from the
perspective of me coding it up to handle the distinction manually.

Maybe that's the wrong approach though. Should Semantic Forms be enhanced to
better handle the distinction between uploading and editing? I'll have to think
about that some. I'm not sure exactly what it should do in each case, since it
might depend on what the form is being used to do.

In my use case I hide the upload form when editing and replace it with a
thumbnail of the image file being edited. Of course, that only works for
images. I'm not sure the potential use cases are constrained enough to do
something by default, depending on whether uploading or editing, other than
hiding the upload field when editing.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to