Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author fried_eggz

    (@fried_eggz)

    I’m sorry but I cant reproduce this error. File uploads work just fine in my test.

    Could you please export your form and post a link to it here?

    Also, make sure that /wp-content/uploads/gravity_forms/ is writable by the server.

    Thread Starter zchristos

    (@zchristos)

    Thread Starter zchristos

    (@zchristos)

    in the list view in file column show the name “Partyplanfinal1.docx”]” and the link it is “http://www.domainname.com/db/%5B%22http:////www.domainname.com//wp-content//uploads//gravity_forms//1-4a39263e715e905c127cab9a671f5b37//2015//04//Partyplanfinal1.docx%22%5D”

    When go to view αll the details of the entry don’t show the file and the link for uploaded file, but show the same “Upload file” option like the add new entry.

    Plugin Author fried_eggz

    (@fried_eggz)

    Thanks. You are using the multi file uploader which is not supported in Sticky List yet (See Known Issues and Planned Features in the plugin description). To fix this you can change the field type to single file and it will work.

    Thread Starter zchristos

    (@zchristos)

    Sorry, I did not see this information. I have changed to single file field and it is working now. I would like to ask you, if it is possible to show icon in the list in the “file” column and when select the icon open the correct file, because now in the list show the file name and if the file name is long, take a lots of space.

    thanks a lot!

    Plugin Author fried_eggz

    (@fried_eggz)

    This is not supported but can be easily done using jQuery:

    jQuery(document).ready(function($) {
    	cell = $('.stickylist-fileupload a');
    	cell.html('<img width="100" src="path/to/icon.png">');
    });

    You might need to tweak this code if you want it to show different icons for different file types.

    Thread Starter zchristos

    (@zchristos)

    Hi again,

    Where I have to put this code?
    I have paste the code(I have changed the icon url) in the file “sticky-list_scripts.js” but it is not working.

    Thank you

    Plugin Author fried_eggz

    (@fried_eggz)

    You can put this in a template file. For example, if you have the Sticky List on a page, you can put this in page.php, above the_content();

    Remember to include the <script> tag like so

    <script>
    jQuery(document).ready(function($) {
    	cell = $('.stickylist-fileupload a');
    	cell.html('<img width="10" src="path/to/icon.png">');
    });
    </script>
    Thread Starter zchristos

    (@zchristos)

    Now it is working but show the icon on list for all entries, how I can setup to show only for the entries has attached file?

    thank you

    Plugin Author fried_eggz

    (@fried_eggz)

    Try this:

    <script>
    jQuery(document).ready(function($) {
    	cell = $('.stickylist-fileupload a');
    	cell.each(function(index) {
    		file = $(this).attr('href');
    		if(file) { $(this).html('<img width="50" src="path/to/icon.png">'); }
    	});
    });
    </script>

    Thread Starter zchristos

    (@zchristos)

    It is work, thanks a lot!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘File Upload field in view’ is closed to new replies.