SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    May 2007
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    file loader with empty file

    Hello I created an upload file view, following AWDWR 22.8 (page 501) and it works fine but since the file is not required I need to check out when no file is submitted otherwise "picture_field.original_filename" gets an error.

    How can I do that?

    Thanks
    Alla prossima ...

  2. #2
    SitePoint Zealot
    Join Date
    May 2007
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    up, nobody has any idea about this issue?
    Alla prossima ...

  3. #3
    SitePoint Evangelist
    Join Date
    Feb 2006
    Location
    Worcs. UK
    Posts
    404
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm guessing you get an error because picture_field doesn't exist.

    Have you tried:
    Code:
    if picture_field and picture_field.original_filename

  4. #4
    SitePoint Zealot
    Join Date
    May 2007
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks
    Alla prossima ...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •