upload field only to BLOB

This commit is contained in:
Marc Delisle
2003-02-12 13:53:35 +00:00
parent 843c2e01f0
commit 308a7836b1
2 changed files with 4 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ $Source$
* lang/lithuanian update, thanks to Vilius Zigmantas
* lang/slovenian update, thanks to Kositer Uros
* lang/swedish: update, thanks to Bj<42>rn T. Hallberg
* tbl_change.php3: upload field only to BLOBs
2003-02-11 Marc Delisle <lem9@users.sourceforge.net>
* tbl_replace_fields.php3: sometimes we receive "none" as the file

View File

@@ -561,10 +561,11 @@ for ($i = 0; $i < $fields_cnt; $i++) {
<?php
} // end if...elseif...else
// Upload choice
// Upload choice (only for BLOBs because the binary
// attribute does not imply binary contents)
// (displayed whatever value the ProtectBinary has)
if ($is_upload) {
if ($is_upload && $is_blob) {
echo '<td><input type="file" name="fields_upload_' . urlencode($field) . '" class="textfield" id="field_' . $i . '_3" />';
echo '<input type="checkbox" checked="checked" name="fields_upload_binary_' . urlencode($field) . '" id="field_' . $i . '_4" />';
echo '<label for="fields_upload_binary_' . urlencode($field) . '">' . $strBinary . '</label>';