Hi,
it seems to be that the Safecracker Form with a standard File Field for Uploads doesn’t work? I got the Safecracker Field working but I’m wondering why the standard File Field doesn’t work.
This is my code:
<!DOCTYPE html>
<html lang="en">
<head>
<title>File-Upload</title>
<meta charset="utf-8">
<link href="{path=css/_ee_saef_css}" type="text/css" rel="stylesheet" media="screen">
</head>
<body>
{exp:safecracker channel='pages' entry_id='1' return='site_index' include_jquery='yes'}
{custom_fields}
{if file}
{display_field}
{/if}
{/custom_fields}
<input type="submit" value="Save changes">
{/exp:safecracker}
</body>
</html>Fieldtype in weblog “pages” is File (not Safecracker File).
The page shows me the Add File Button: If I hit this link, the File Manager Modal opens and I see my image list. If I choose an image and click the link for this image in the modal the image is inserted by Javascript in my page (the word “undefined” is under the image -> filename isn’t set).
Firebug shows an error after this action:
$.ee_filebrowser.reset is not a function
$(document).ready(function(){function ...browser.reset()}$(”.js_show”).show();
After submitting the form the image isn’t saved.
If I add an image via the Control Panel everything is working correct. When I’m trying to remove this image via Safecracker this isn’t working too.
Thank you for your help.