I am getting the following error and i can't figure out why:

Traceback (most recent call last):
  File "gluon/restricted.py", line 178, in restricted
  File "C:/Inetpub/wwwroot/web2py/applications/init/controllers/
inventory.py", line 344, in <module>
  File "gluon/globals.py", line 102, in <lambda>
  File "C:/Inetpub/wwwroot/web2py/applications/init/controllers/
inventory.py", line 245, in update
  File "gluon/sqlhtml.py", line 824, in accepts
  File "gluon/sql.py", line 1866, in store
IOError: [Errno 2] No such file or directory: 'C:\\Inetpub\\wwwroot\
\web2py\\applications\\init/databases\\..\\uploads\\Items.SmPicture.
8fa43e89b88be9d4.4944434d5f4153495f496e746567726174696f6e5f534d414c4c5f42472e6a7067.jpg'

I get this error message when i try to upload a picture. The strange
thing is that it works fine on my web2py setup on my laptop, but when
i uploaded it to the work server it gives me this error. I made sure i
was running the latest version of web2py on the server but i still get
this error. any ideas?

Here is part of the table in db.py:
db.define_table('Items',
    .......other fields
    SQLField('SmPicture', 'upload', label="Upload a Small Picture of
the Item"),
    .......other fields
    )

Here is part of the controler inventory.py:
def update():
    .... blah blah blah
    editItem = SQLFORM(db.Items, record=id, formname='editItem',
deletable=True, showid=False,
        fields=['OrderNumber', 'Item', 'Description', 'MinimumOrder',
'OrderInLotsOf', 'QuantityPricing', 'Price',
                'OnSale', 'SalePrice', 'weight', 'ItemCategory',
'SmPicture', 'Manufacturer', 'SaleableItem'])

    if editItem.accepts(request.vars, session, formname='editItem'):
        response.flash = 'new record inserted'
        redirect(URL(r=request, f='update', vars={'i':id, 's':0}))

any help will be much appreciated.

Thanks, David Youngblood


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to