You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use the 0.7.0 dev branch for its multi-file uploading enhancements.
The files are successfully uploaded, however, it does not appear that any filenames are being passed via callback. This is true even when only 1 file is uploaded.
I have switched to using the "uploadedFileNames" prop as it seems "isCompleted" and "filenames" are deprecated.
Am I doing something wrong?
@app.callback(
Output("loaded-data", "data"),
[
Input("upload-data", "uploadedFileNames"),
Input("confirm_clear_button", "n_clicks"),
],
[
State("upload-data", "upload_id"),
State("loaded-data", "data"),
]
)
def update_data(filenames, confirm_clicks, upload_id, stored_results):
UPLOAD_FOLDER_ROOT = r"du_files"
trigger_id = dash.callback_context.triggered[0]["prop_id"].split(".")[0]
if trigger_id == "confirm_clear_button":
if confirm_clicks:
return pd.DataFrame()
else:
raise PreventUpdate
if trigger_id == "upload-data":
print(filenames)
#print(iscompleted)
print(len(filenames))
# if not iscompleted:
# return
if filenames is not None and len(filenames) > 0:
###process files here####
[2022-03-29 20:56:33,279] DEBUG in httprequesthandler: File saved to: du_files\d8e79e88-3f60-4ae1-8312-e5f99dba5f11\Server_Results_20201221.log
[]
[2022-03-29 20:56:33,648] DEBUG in httprequesthandler: File saved to: du_files\d8e79e88-3f60-4ae1-8312-e5f99dba5f11\Server_Results_20201107.log
[2022-03-29 20:56:34,011] DEBUG in httprequesthandler: File saved to: du_files\d8e79e88-3f60-4ae1-8312-e5f99dba5f11\Server_Results_20201208.log
[2022-03-29 21:02:22,034] DEBUG in httprequesthandler: File saved to: du_files\5eabaf90-b53a-4782-9925-855bcde438e2\Server_Results_20201221.log
[]
[2022-03-29 21:02:22,750] DEBUG in httprequesthandler: File saved to: du_files\5eabaf90-b53a-4782-9925-855bcde438e2\Server_Results_20201208.log
[]
The text was updated successfully, but these errors were encountered:
Oh yeah, there has been a lot of changes in the 0.7.0 development branch which will unfortunately also have backwards-incompatible changes. I will have to document the things well when the release happens. I assume that you have built the JS yourself, which also might not been easy. As more people are trying the 0.7.0 I might as well go and make a pre-release available in PyPI so people can try it out without the NodeJS hassle.
Anyway, most probably the problem is with your callback structure. In the dev repo, the usage.py has a callback like this:
I am trying to use the 0.7.0 dev branch for its multi-file uploading enhancements.
The files are successfully uploaded, however, it does not appear that any filenames are being passed via callback. This is true even when only 1 file is uploaded.
I have switched to using the "uploadedFileNames" prop as it seems "isCompleted" and "filenames" are deprecated.
Am I doing something wrong?
[2022-03-29 20:56:33,279] DEBUG in httprequesthandler: File saved to: du_files\d8e79e88-3f60-4ae1-8312-e5f99dba5f11\Server_Results_20201221.log
[]
[2022-03-29 20:56:33,648] DEBUG in httprequesthandler: File saved to: du_files\d8e79e88-3f60-4ae1-8312-e5f99dba5f11\Server_Results_20201107.log
[2022-03-29 20:56:34,011] DEBUG in httprequesthandler: File saved to: du_files\d8e79e88-3f60-4ae1-8312-e5f99dba5f11\Server_Results_20201208.log
[2022-03-29 21:02:22,034] DEBUG in httprequesthandler: File saved to: du_files\5eabaf90-b53a-4782-9925-855bcde438e2\Server_Results_20201221.log
[]
[2022-03-29 21:02:22,750] DEBUG in httprequesthandler: File saved to: du_files\5eabaf90-b53a-4782-9925-855bcde438e2\Server_Results_20201208.log
[]
The text was updated successfully, but these errors were encountered: