on 03-05-2016 7:18 AM
Hi All,
The backend team is facing issue while re opening the file that is stored in the table.
1. I have used sap.ui.unified for single File Upload from front end.
2. The code snippet from view is
FileUploader id="UploadMedia"
name="UploadMedia"
uploadUrl="/Url Path/ET_AttachSet/"
sendXHR= "true"
change="handleFileUploadChange"
fileType='doc,docx,docm,pdf,jpg'
uploadComplete="handleUploadComplete"
width="100%"/>
3. Controller Code snippet for file upload is ::
I have refreshed the token and uploaded the file using FileUploader.upload();
4. The file is getting uploaded in the table and I am getting the
Hi
Have you also converted it to base64 before sending it to backend.
As mentioned in the below thread.
https://scn.sap.com/thread/3670662
Regards,
Sarbjeet Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am using sap.ui.unified.
var oFileUploader = this.getView().byId("fileUploader");
oFileUploader.upload();
By using the above method here I am sending the raw data by calling the upload method.
The backend team is expecting the data in XString and I am send in the raw data. So he is not able to reopen the file.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.