We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The file selector component no longer receives the file size from the backend when uploading a file:
Data Source: file-desktop-upload.js
Calls this operation: CStudioAuthoring.Operations.uploadAsset(site, path, isUploadOverwrite, callback);
CStudioAuthoring.Operations.uploadAsset(site, path, isUploadOverwrite, callback);
Which on success returns fileData success: function(fileData) { if (control) { control.insertItem(path + "/" + fileData.fileName, path + "/" + fileData.fileName, fileData.fileExtension, fileData.size); control._renderItems(); } }
success: function(fileData) { if (control) { control.insertItem(path + "/" + fileData.fileName, path + "/" + fileData.fileName, fileData.fileExtension, fileData.size); control._renderItems(); } }
fileData.size is returning undefined.
Create a simple form with a file-upload data source linked to a item selector, open form and upload file.
Note that call to service does NOT return size in response. It should. http://localhost:8080/studio/asset-upload?nocache=Fri%20Mar%2024%202017%2011:05:44%20GMT-0400%20(EDT) { fileName: "research.jpg", fileExtension: "jpg" }
{ fileName: "research.jpg", fileExtension: "jpg" }
The text was updated successfully, but these errors were encountered:
@russdanner can you provide details on how to reach this state and more clearly indicate what's wrong?
Sorry, something went wrong.
Closing this as we don't have enough detail.
Done studio: PR #601 #602
studio-ui PR #308 #309
russdanner
sumerjabri
dejan-brkic
No branches or pull requests
The file selector component no longer receives the file size from the backend when uploading a file:
Data Source: file-desktop-upload.js
Calls this operation:
CStudioAuthoring.Operations.uploadAsset(site, path, isUploadOverwrite, callback);
Which on success returns fileData
success: function(fileData) { if (control) { control.insertItem(path + "/" + fileData.fileName, path + "/" + fileData.fileName, fileData.fileExtension, fileData.size); control._renderItems(); } }
fileData.size is returning undefined.
To reproduce:
Create a simple form with a file-upload data source linked to a item selector, open form and upload file.
Note that call to service does NOT return size in response. It should.
http://localhost:8080/studio/asset-upload?nocache=Fri%20Mar%2024%202017%2011:05:44%20GMT-0400%20(EDT)
{ fileName: "research.jpg", fileExtension: "jpg" }
The text was updated successfully, but these errors were encountered: