Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
15 replies
Subscribers
7 subscribers
Views
6228 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hi, I am trying a simple file upload component in v7.8 but not able to upl
subramanian Valliappan
Certified Lead Developer
over 9 years ago
Hi,
I am trying a simple file upload component in v7.8 but not able to upload a document. When a document is uploaded getting an error message "File could not be uploaded. Please try uploading it again." the size of the file is very small.
Please refer the snap shot below for the code and the error message
OriginalPostID-142450
OriginalPostID-142450
Discussion posts and replies are publicly visible
0
Tim
Certified Lead Developer
over 9 years ago
Looks like you're trying to do this in the interface designer which is prohibited. The field will only work when used in process.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
subramanian Valliappan
Certified Lead Developer
over 9 years ago
Getting the issue if the same code is used in a form in a process.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Christine Shen
A Score Level 1
over 9 years ago
You need to set the value as well, so there should be a line "value: local!a"
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
subramanian Valliappan
Certified Lead Developer
over 9 years ago
Modified the code to add the value attribute still the error persists. Code attached.
Sometimes getting the error as above and some times an error stating "Time limit is exceeded please try uploading it again".
File Upload Form.txt
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Jacob Cohen - Project Leader - Macedon Technologies
over 9 years ago
Are you on cloud or on your own environment? If you're not on cloud, it's possible that you have a configuration preventing file upload or with a quick timeout. As Tim mentioned, it will not work in the interface designer, so make sure you're testing in process.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
subramanian Valliappan
Certified Lead Developer
over 9 years ago
Yes I am testing it in the process. We are not in cloud. The timeout does not appear frequently most of the time it is "the file could not be uploaded. "
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Christine Shen
A Score Level 1
over 9 years ago
I have tried running your code and it works fine, you do not even need the value parameter. Have you checked the constant for you destination folder?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mohamedt808
over 9 years ago
1.Instead of using local variables try adding a rule input of type document for value and saveInto.
2.Try Using the target as constant of type document or folder.
3.Give Document name as well.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
zeeshanp
over 9 years ago
Can you check permissions to your AAR_DOCUMENT_FOLDER. Can you try pointing this constant to a new folder in your private knowledge centre?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
utkarshs
over 9 years ago
Hey why don't you use rule input instead of a local variable?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>